public final class SAMLMessageSecuritySupport
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
SAMLMessageSecuritySupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkURLScheme(java.lang.String scheme)
Check whether the specified URL scheme is allowed.
|
static SignatureSigningParameters |
getContextSigningParameters(MessageContext<SAMLObject> messageContext)
Get the signing parameters from the message context.
|
static void |
signMessage(MessageContext<SAMLObject> messageContext)
Signs the SAML message represented in the message context if it is a
SignableXMLObject
and the message context contains signing parameters as determined
by getContextSigningParameters(MessageContext). |
public static void signMessage(@Nonnull
MessageContext<SAMLObject> messageContext)
throws SecurityException,
MarshallingException,
SignatureException
SignableXMLObject
and the message context contains signing parameters as determined
by getContextSigningParameters(MessageContext).messageContext - current message contextSecurityException - if there is a problem preparing the signatureMarshallingException - if there is a problem marshalling the SAMLObjectSignatureException - if there is a problem with the signature operation@Nullable public static SignatureSigningParameters getContextSigningParameters(@Nonnull MessageContext<SAMLObject> messageContext)
messageContext - the message contextpublic static boolean checkURLScheme(@Nonnull @NotEmpty
java.lang.String scheme)
scheme - the URL scheme to check.