|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.saml2.binding.security.SAML2ProtocolMessageRuleFactory.SAML2ProtocolMessageRule
public class SAML2ProtocolMessageRuleFactory.SAML2ProtocolMessageRule
An implementation of SecurityPolicyRule
which processes SAML 2 messages and extracts relevant information
out for use in other rules.
Constructor Summary | |
---|---|
SAML2ProtocolMessageRuleFactory.SAML2ProtocolMessageRule()
|
Method Summary | |
---|---|
void |
evaluate(javax.servlet.ServletRequest request,
XMLObject message,
SecurityPolicyContext context)
Evaluates the rule against the given request and message. |
protected java.lang.String |
extractEntityId(Issuer issuer)
Extracts the entity ID from the SAML 2 Issuer. |
protected void |
extractRequestInfo(SAMLSecurityPolicyContext samlContext,
RequestAbstractType request)
Extract information from a SAML RequestAbstractType message. |
protected void |
extractResponseInfo(SAMLSecurityPolicyContext samlContext,
StatusResponseType statusResponse)
Extract information from a SAML StatusResponse message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAML2ProtocolMessageRuleFactory.SAML2ProtocolMessageRule()
Method Detail |
---|
public void evaluate(javax.servlet.ServletRequest request, XMLObject message, SecurityPolicyContext context) throws SecurityPolicyException
evaluate
in interface SecurityPolicyRule<javax.servlet.ServletRequest>
request
- the protocol requestmessage
- the incoming messagecontext
- the security policy context to use for evaluation and storage of related state info
SecurityPolicyException
- thrown if the request/message do not meet the requirements of this ruleprotected void extractResponseInfo(SAMLSecurityPolicyContext samlContext, StatusResponseType statusResponse) throws SecurityPolicyException
samlContext
- the security policy context in which to store informationstatusResponse
- the SAML message to process
SecurityPolicyException
- thrown if the response issuer has a format other than
NameIDType.ENTITY
or, if the response does not contain an issuer, if the contained
assertions contain issuers that are not of NameIDType.ENTITY
format or if the assertions
contain different issuersprotected void extractRequestInfo(SAMLSecurityPolicyContext samlContext, RequestAbstractType request) throws SecurityPolicyException
samlContext
- the security policy context in which to store informationrequest
- the SAML message to process
SecurityPolicyException
- thrown if the request issuer has a format other than
NameIDType.ENTITY
protected java.lang.String extractEntityId(Issuer issuer) throws SecurityPolicyException
issuer
- issuer to extract the entityID from
SecurityPolicyException
- thrown if the given issuer has a format other than NameIDType.ENTITY
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |