|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides methods for determining security properties for a request.
Field Summary | |
static String |
versionId
|
Method Summary | |
String |
getLoginURL(javax.servlet.http.HttpServletRequest req)
Determines where to redirect the client to log in. |
boolean |
isSecure(javax.servlet.http.HttpServletRequest req)
Determines whether the given request is secure. |
boolean |
requiresLogin(javax.servlet.http.HttpServletRequest req)
Determines whether the given request requires the user to be logged in. |
Field Detail |
public static final String versionId
Method Detail |
public boolean isSecure(javax.servlet.http.HttpServletRequest req)
req.isSecure()
, but certain deployments
may use other information (such as the requested port number)
instead.
req
- the request to check
true
if the given request uses a secure
protocol, false
otherwise.public boolean requiresLogin(javax.servlet.http.HttpServletRequest req)
true
, the system will call
getLoginURL
to determine where to redirect the client to
log in.
req
- the request to check
true
if the given request requires the user to
be logged in, false
otherwise.public String getLoginURL(javax.servlet.http.HttpServletRequest req)
requiresLogin(req)
is true.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |