public final class SAMLMessageSecuritySupport extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkURLScheme(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 contextCopyright © 2021. All rights reserved.