public class SamlProtocolUtils extends Object
| Constructor and Description |
|---|
SamlProtocolUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
createRandomSecret(int size)
Creates a random
byte[] secret of the specified size. |
static PublicKey |
getEncryptionValidationKey(ClientModel client) |
static PublicKey |
getPublicKey(ClientModel client,
String attribute) |
static PublicKey |
getSignatureValidationKey(ClientModel client) |
static void |
verifyDocumentSignature(ClientModel client,
Document document) |
static void |
verifyDocumentSignature(Document document,
PublicKey publicKey) |
static void |
verifyRedirectSignature(PublicKey publicKey,
javax.ws.rs.core.UriInfo uriInformation) |
public static byte[] createRandomSecret(int size)
Creates a random byte[] secret of the specified size.
size - the size of the secret to be created, in bytes.byte[] containing the generated secret.public static void verifyDocumentSignature(ClientModel client, Document document) throws VerificationException
VerificationExceptionpublic static void verifyDocumentSignature(Document document, PublicKey publicKey) throws VerificationException
VerificationExceptionpublic static PublicKey getSignatureValidationKey(ClientModel client) throws VerificationException
VerificationExceptionpublic static PublicKey getEncryptionValidationKey(ClientModel client) throws VerificationException
VerificationExceptionpublic static PublicKey getPublicKey(ClientModel client, String attribute) throws VerificationException
VerificationExceptionpublic static void verifyRedirectSignature(PublicKey publicKey, javax.ws.rs.core.UriInfo uriInformation) throws VerificationException
VerificationExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.