|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AuthAdaptor
Authentication adaptor to return whether a role is available to a principal.
| Method Summary | |
|---|---|
void |
didAuthenticate(java.security.Principal p,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Invoked after a user-agent has successfully authenticated. |
void |
init(javax.servlet.FilterConfig conf)
Initialize this AuthAdaptor with the given filter config. |
boolean |
isPrincipalInRole(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletContext context,
java.security.Principal user,
java.lang.String role)
Determine whether the given Principal is in the given role. |
| Method Detail |
|---|
void init(javax.servlet.FilterConfig conf)
throws javax.servlet.ServletException
conf - the filter config
javax.servlet.ServletException - if initialization fails
boolean isPrincipalInRole(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletContext context,
java.security.Principal user,
java.lang.String role)
req - servlet requestres - servlet responsecontext - the servlet contextuser - the Principarole - the role we need
void didAuthenticate(java.security.Principal p,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
p - the principalreq - the requestres - the response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||