public class SAML2HTTPPostSimpleSignSecurityHandler extends BaseSAMLSimpleSignatureSecurityHandler
Modifier and Type | Field and Description |
---|---|
private org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver |
keyInfoResolver
KeyInfo resolver to use to process KeyInfo request parameter.
|
private org.slf4j.Logger |
log
Logger.
|
private net.shibboleth.utilities.java.support.xml.ParserPool |
parserPool
Parser pool to use to process KeyInfo request parameter.
|
Constructor and Description |
---|
SAML2HTTPPostSimpleSignSecurityHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialize() |
org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver |
getKeyInfoResolver()
Get the KeyInfo credential resolver.
|
net.shibboleth.utilities.java.support.xml.ParserPool |
getParserPool()
Get the parser pool.
|
protected List<org.opensaml.security.credential.Credential> |
getRequestCredentials(org.opensaml.messaging.context.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(org.opensaml.messaging.context.MessageContext messageContext)
Determine whether the rule should handle the request, based on the unwrapped HTTP servlet request and/or message
context.
|
void |
setKeyInfoResolver(org.opensaml.xmlsec.keyinfo.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, getActivationCondition, getLogPrefix, invoke, setActivationCondition
destroy, doDestroy, initialize, isDestroyed, isInitialized
@Nonnull private org.slf4j.Logger log
@NonnullAfterInit private net.shibboleth.utilities.java.support.xml.ParserPool parserPool
@NonnullAfterInit private org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver keyInfoResolver
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 org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver getKeyInfoResolver()
public void setKeyInfoResolver(@Nonnull org.opensaml.xmlsec.keyinfo.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 org.opensaml.messaging.context.MessageContext messageContext)
ruleHandles
in class BaseSAMLSimpleSignatureSecurityHandler
messageContext
- the SAML message context being processed@Nullable protected byte[] getSignedContent() throws org.opensaml.messaging.handler.MessageHandlerException
SignatureTrustEngine.validate(byte[], byte[], String, CriteriaSet, Credential)
.getSignedContent
in class BaseSAMLSimpleSignatureSecurityHandler
org.opensaml.messaging.handler.MessageHandlerException
- thrown if there is an error during request processing@Nonnull @NonnullElements protected List<org.opensaml.security.credential.Credential> getRequestCredentials(@Nonnull org.opensaml.messaging.context.MessageContext samlContext) throws org.opensaml.messaging.handler.MessageHandlerException
getRequestCredentials
in class BaseSAMLSimpleSignatureSecurityHandler
samlContext
- the SAML message context being processedorg.opensaml.messaging.handler.MessageHandlerException
- thrown if there is an error during request processingCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.