public interface Authorizer
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String role)
Decide is this request is authorized in the named role.
|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Process this request.
|
void |
setRoleSource(RoleSource roleSource)
Set the role source, if there is one.
|
void setRoleSource(RoleSource roleSource)
roleSource - tells whether a user has the named role.boolean authorize(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String role)
throws IOException,
javax.servlet.ServletException
req - the requestres - the responserole - need this roleIOException - I/O error, eg networkjavax.servlet.ServletException - other errorsvoid doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
req - the requestres - the responseIOException - I/O error, eg networkjavax.servlet.ServletException - other errors