public final class XMLSigningUtil extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
signWithURI(Credential signingCredential,
String algorithmURI,
byte[] input)
Compute the signature or MAC value over the supplied input.
|
static boolean |
verifyWithURI(Credential verificationCredential,
String algorithmURI,
byte[] signature,
byte[] input)
Verify the signature value computed over the supplied input against the supplied signature value.
|
public static byte[] signWithURI(@Nonnull Credential signingCredential, @Nonnull String algorithmURI, @Nonnull byte[] input) throws SecurityException
signingCredential
- the credential containing the signing keyalgorithmURI
- the algorithm URI to useinput
- the input over which to compute the signatureSecurityException
- throw if the computation process results in an errorpublic static boolean verifyWithURI(@Nonnull Credential verificationCredential, @Nonnull String algorithmURI, @Nonnull byte[] signature, @Nonnull byte[] input) throws SecurityException
verificationCredential
- the credential containing the verification keyalgorithmURI
- the algorithm URI to usesignature
- the computed signature value received from the signerinput
- the input over which the signature is computed and verifiedSecurityException
- thrown if the signature computation or verification process results in an errorCopyright © 2016 JBoss by Red Hat. All rights reserved.