public class TomcatAuthorizer extends Object implements Authorizer
| Constructor and Description |
|---|
TomcatAuthorizer() |
| 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 db)
Set the role source, if there is one.
|
void |
setSslPort(String sslPort) |
void |
setUseSSL(boolean useSSL) |
public void setUseSSL(boolean useSSL)
public void setSslPort(String sslPort)
public void setRoleSource(RoleSource db)
AuthorizersetRoleSource in interface Authorizerdb - tells whether a user has the named role.public boolean authorize(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String role)
throws IOException
Authorizerauthorize in interface Authorizerreq - the requestres - the responserole - need this roleIOException - I/O error, eg networkpublic void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
AuthorizerdoGet in interface Authorizerreq - the requestres - the responsejavax.servlet.ServletException - other errorsIOException - I/O error, eg network