|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestSecurityManager
Used to manage the relationship between the security of a request and the security of a page. By secure, we mean whether a request uses HTTPS and whether a page demands the use of HTTPS.
Request.isSecure()
Method Summary | |
---|---|
boolean |
checkForInsecureComponentEventRequest(ComponentEventRequestParameters parameters)
Checks the target page of the component event request to see if it is secure; if so, and the request is not secure, then a redirect to the page is generated and sent, preserving the original component event request. |
boolean |
checkForInsecurePageRenderRequest(PageRenderRequestParameters parameters)
Checks the page to see if it is secure; if so, and the request is not secure, then a redirect to the page is generated and sent. |
LinkSecurity |
checkPageSecurity(String pageName)
Determines if the page security does not match the request's security. |
Method Detail |
---|
boolean checkForInsecurePageRenderRequest(PageRenderRequestParameters parameters) throws IOException
parameters
- parameters for the current request
IOException
boolean checkForInsecureComponentEventRequest(ComponentEventRequestParameters parameters) throws IOException
parameters
- parameters for the current request
IOException
LinkSecurity checkPageSecurity(String pageName)
LinkSecurity.SECURE
or LinkSecurity.INSECURE
if the request security matches the pages. Otherwise, returns
LinkSecurity.FORCE_SECURE
or LinkSecurity.FORCE_INSECURE
(which will force fully qualified URLs to be generated when
rendering).
pageName
- for the security check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |