public interface Authorizer
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.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,
java.lang.String role)
throws java.io.IOException,
javax.servlet.ServletException
req - the requestres - the responserole - need this rolejava.io.IOException - I/O error, eg networkjavax.servlet.ServletException - other errorsvoid doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
req - the requestres - the responsejava.io.IOException - I/O error, eg networkjavax.servlet.ServletException - other errors