|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.ws.security.provider.HTTPRuleFactory
public class HTTPRuleFactory
A factory for a rule that checks that certain HTTP request characterisitics are met. Specifically the following items are tested:
Nested Class Summary | |
---|---|
protected class |
HTTPRuleFactory.HTTPRule
Policy rule for checking basic HTTP request requirements. |
Constructor Summary | |
---|---|
HTTPRuleFactory()
|
Method Summary | |
---|---|
SecurityPolicyRule<javax.servlet.http.HttpServletRequest> |
createRuleInstance()
Creates an instance of a policy rule. |
java.lang.String |
getCharacterEncoding()
Gets the expected content type of the request. |
java.lang.String |
getContentType()
Gets the expected content type of the request. |
java.lang.String |
getRequestMethod()
Gets the expected method of the request. |
java.lang.String |
getRequestScheme()
Gets the expected scheme of the request. |
boolean |
isRequireSecured()
Gets whether a secure request is required. |
void |
setCharacterEncoding(java.lang.String encoding)
Sets the expected content type of the request. |
void |
setContentType(java.lang.String type)
Sets the expected content type of the request. |
void |
setRequestMethod(java.lang.String method)
Sets expected method of the request. |
void |
setRequestScheme(java.lang.String scheme)
Sets the expected scheme of the request. |
void |
setRequireSecured(boolean secured)
Sets whether a secure request is required. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPRuleFactory()
Method Detail |
---|
public java.lang.String getCharacterEncoding()
public void setCharacterEncoding(java.lang.String encoding)
encoding
- expected content type of the requestpublic java.lang.String getContentType()
public void setContentType(java.lang.String type)
type
- expected content type of the requestpublic java.lang.String getRequestMethod()
public void setRequestMethod(java.lang.String method)
method
- expected method of the requestpublic java.lang.String getRequestScheme()
public void setRequestScheme(java.lang.String scheme)
scheme
- expected scheme of the requestpublic boolean isRequireSecured()
public void setRequireSecured(boolean secured)
secured
- whether a secure request is requiredpublic SecurityPolicyRule<javax.servlet.http.HttpServletRequest> createRuleInstance()
createRuleInstance
in interface SecurityPolicyRuleFactory<javax.servlet.http.HttpServletRequest>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |