org.opensaml.ws.security.provider
Class HTTPRuleFactory.HTTPRule
java.lang.Object
org.opensaml.ws.security.provider.HTTPRuleFactory.HTTPRule
- All Implemented Interfaces:
- SecurityPolicyRule<javax.servlet.http.HttpServletRequest>
- Enclosing class:
- HTTPRuleFactory
protected class HTTPRuleFactory.HTTPRule
- extends java.lang.Object
- implements SecurityPolicyRule<javax.servlet.http.HttpServletRequest>
Policy rule for checking basic HTTP request requirements.
Constructor Summary |
HTTPRuleFactory.HTTPRule(java.lang.String type,
java.lang.String encoding,
java.lang.String scheme,
java.lang.String method,
boolean secured)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPRuleFactory.HTTPRule
public HTTPRuleFactory.HTTPRule(java.lang.String type,
java.lang.String encoding,
java.lang.String scheme,
java.lang.String method,
boolean secured)
- Constructor.
- Parameters:
type
- expected content typeencoding
- expected character encodingscheme
- expected schememethod
- expected request methodsecured
- whether the request must be secured
evaluate
public void evaluate(javax.servlet.http.HttpServletRequest request,
XMLObject message,
SecurityPolicyContext context)
throws SecurityPolicyException
- Evaluates the rule against the given request and message.
- Specified by:
evaluate
in interface SecurityPolicyRule<javax.servlet.http.HttpServletRequest>
- Parameters:
request
- the protocol requestmessage
- the incoming messagecontext
- the security policy context to use for evaluation and storage of related state info
- Throws:
SecurityPolicyException
- thrown if the request/message do not meet the requirements of this rule