public final class XMLSigningUtil
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
XMLSigningUtil()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
signWithURI(Credential signingCredential,
java.lang.String algorithmURI,
byte[] input)
Compute the signature or MAC value over the supplied input.
|
static boolean |
verifyWithURI(Credential verificationCredential,
java.lang.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
java.lang.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
java.lang.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 error