|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticationController
Allows the host application to communicate about when authentication should be performed and users allowed to login.
Method Summary | |
---|---|
boolean |
canLogin(Principal principal,
javax.servlet.http.HttpServletRequest request)
Check whether the given principal can log into the application for the current request. |
boolean |
shouldAttemptAuthentication(javax.servlet.http.HttpServletRequest request)
Check whether or not authentication should be tried. |
Method Detail |
---|
boolean shouldAttemptAuthentication(javax.servlet.http.HttpServletRequest request)
true
if the current principal is not already authenticated.
request
- the current HttpServletRequest
true
if authentication should be tried, false
otherwise.boolean canLogin(Principal principal, javax.servlet.http.HttpServletRequest request)
principal
- the identified principalrequest
- the current HttpServletRequest
true
if the principal is allowed to login for the given request, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |