public class SAML2HTTPPostSimpleSignRule extends BaseSAMLSimpleSignatureSecurityPolicyRule
Constructor and Description |
---|
SAML2HTTPPostSimpleSignRule(SignatureTrustEngine engine,
ParserPool parserPool,
KeyInfoCredentialResolver keyInfoCredResolver)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected List<Credential> |
getRequestCredentials(HttpServletRequest request,
SAMLMessageContext samlContext)
Extract any candidate validation credentials from the request and/or message context.
|
protected byte[] |
getSignedContent(HttpServletRequest request)
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(HttpServletRequest request,
SAMLMessageContext samlMsgCtx)
Determine whether the rule should handle the request, based on the unwrapped HTTP servlet request and/or message
context.
|
buildCriteriaSet, deriveSignerEntityID, evaluate, getSignature, getSignatureAlgorithm, getTrustEngine, validateSignature
public SAML2HTTPPostSimpleSignRule(SignatureTrustEngine engine, ParserPool parserPool, KeyInfoCredentialResolver keyInfoCredResolver)
engine
- the trust engine to useparserPool
- the parser pool used to parse the KeyInfo request parameterkeyInfoCredResolver
- the KeyInfo credential resovler to use to extract credentials from the KeyInfo request
parameterprotected boolean ruleHandles(HttpServletRequest request, SAMLMessageContext samlMsgCtx)
ruleHandles
in class BaseSAMLSimpleSignatureSecurityPolicyRule
request
- the HTTP servlet request being processedsamlMsgCtx
- the SAML message context being processedprotected byte[] getSignedContent(HttpServletRequest request) throws SecurityPolicyException
SignatureTrustEngine.validate(byte[], byte[], String, CriteriaSet, Credential)
.getSignedContent
in class BaseSAMLSimpleSignatureSecurityPolicyRule
request
- the HTTP servlet request being processedSecurityPolicyException
- thrown if there is an error during request processingprotected List<Credential> getRequestCredentials(HttpServletRequest request, SAMLMessageContext samlContext) throws SecurityPolicyException
getRequestCredentials
in class BaseSAMLSimpleSignatureSecurityPolicyRule
request
- the HTTP servlet request being processedsamlContext
- the SAML message context being processedSecurityPolicyException
- thrown if there is an error during request processingCopyright © 2018 JBoss by Red Hat. All rights reserved.