Class SAMLMessageSecuritySupport
- java.lang.Object
-
- org.opensaml.saml.common.messaging.SAMLMessageSecuritySupport
-
public final class SAMLMessageSecuritySupport extends Object
A support class for SAML security-related message handler operations.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSAMLMessageSecuritySupport()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckURLScheme(String scheme)Check whether the specified URL scheme is allowed.static SignatureSigningParametersgetContextSigningParameters(MessageContext messageContext)Get the signing parameters from the message context.static voidsignMessage(MessageContext messageContext)Signs the SAML message represented in the message context if it is aSignableXMLObjectand the message context contains signing parameters as determined bygetContextSigningParameters(MessageContext).
-
-
-
Method Detail
-
signMessage
public static void signMessage(@Nonnull MessageContext messageContext) throws SecurityException, MarshallingException, SignatureExceptionSigns the SAML message represented in the message context if it is aSignableXMLObjectand the message context contains signing parameters as determined bygetContextSigningParameters(MessageContext).- Parameters:
messageContext- current message context- Throws:
SecurityException- 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
-
getContextSigningParameters
@Nullable public static SignatureSigningParameters getContextSigningParameters(@Nonnull MessageContext messageContext)
Get the signing parameters from the message context.- Parameters:
messageContext- the message context- Returns:
- the signing parameters to use, may be null
-
-