public final class SAMLMessageSecuritySupport extends Object
Modifier | Constructor and Description |
---|---|
private |
SAMLMessageSecuritySupport()
Constructor.
|
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 org.opensaml.security.SecurityException, org.opensaml.core.xml.io.MarshallingException, SignatureException
SignableXMLObject
and the message context contains signing parameters as determined
by getContextSigningParameters(MessageContext)
.messageContext
- current message contextorg.opensaml.security.SecurityException
- if there is a problem preparing the signatureorg.opensaml.core.xml.io.MarshallingException
- 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 © 1999–2015 JBoss by Red Hat. All rights reserved.