public class SAML2HTTPPostSimpleSignSecurityHandler extends BaseSAMLSimpleSignatureSecurityHandler
Constructor and Description |
---|
SAML2HTTPPostSimpleSignSecurityHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialize() |
KeyInfoCredentialResolver |
getKeyInfoResolver()
Get the KeyInfo credential resolver.
|
net.shibboleth.utilities.java.support.xml.ParserPool |
getParserPool()
Get the parser pool.
|
protected List<Credential> |
getRequestCredentials(MessageContext samlContext)
Extract any candidate validation credentials from the request and/or message context.
|
protected byte[] |
getSignedContent()
Get the content over which to validate the signature, in the form suitable for input into
SignatureTrustEngine.validate(byte[], byte[], String, CriteriaSet, Credential) . |
protected boolean |
ruleHandles(MessageContext messageContext)
Determine whether the rule should handle the request, based on the unwrapped HTTP servlet request and/or message
context.
|
void |
setKeyInfoResolver(KeyInfoCredentialResolver newKeyInfoResolver)
Set the KeyInfo credential resolver.
|
void |
setParser(net.shibboleth.utilities.java.support.xml.ParserPool newParserPool)
Set the parser pool.
|
buildCriteriaSet, deriveSignerEntityID, doInvoke, doPreInvoke, getHttpServletRequest, getSignature, getSignatureAlgorithm, getTrustEngine, setHttpServletRequest, validateSignature
doPostInvoke, doPostInvoke, getLogPrefix, invoke
destroy, doDestroy, initialize, isDestroyed, isInitialized
public SAML2HTTPPostSimpleSignSecurityHandler()
@NonnullAfterInit public net.shibboleth.utilities.java.support.xml.ParserPool getParserPool()
public void setParser(@Nonnull net.shibboleth.utilities.java.support.xml.ParserPool newParserPool)
newParserPool
- The parser to set.@NonnullAfterInit public KeyInfoCredentialResolver getKeyInfoResolver()
public void setKeyInfoResolver(@Nonnull KeyInfoCredentialResolver newKeyInfoResolver)
newKeyInfoResolver
- The keyInfoResolver to set.protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize
in class BaseSAMLSimpleSignatureSecurityHandler
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected boolean ruleHandles(@Nonnull MessageContext messageContext)
ruleHandles
in class BaseSAMLSimpleSignatureSecurityHandler
messageContext
- the SAML message context being processed@Nullable protected byte[] getSignedContent() throws MessageHandlerException
SignatureTrustEngine.validate(byte[], byte[], String, CriteriaSet, Credential)
.getSignedContent
in class BaseSAMLSimpleSignatureSecurityHandler
MessageHandlerException
- thrown if there is an error during request processing@Nonnull @NonnullElements protected List<Credential> getRequestCredentials(@Nonnull MessageContext samlContext) throws MessageHandlerException
getRequestCredentials
in class BaseSAMLSimpleSignatureSecurityHandler
samlContext
- the SAML message context being processedMessageHandlerException
- thrown if there is an error during request processingCopyright © 2018. All rights reserved.