|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.security.AbstractConstraint
com.caucho.server.security.RoleConstraint
public class RoleConstraint
| Constructor Summary | |
|---|---|
RoleConstraint()
|
|
| Method Summary | |
|---|---|
void |
addRoleName(java.lang.String role)
|
AuthorizationResult |
isAuthorized(HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
Returns true if the user is authorized for the resource. |
boolean |
needsAuthentication()
Returns true if the constraint requires authentication. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.server.security.AbstractConstraint |
|---|
isPrivateCache, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RoleConstraint()
| Method Detail |
|---|
public void addRoleName(java.lang.String role)
public boolean needsAuthentication()
needsAuthentication in class AbstractConstraint
public AuthorizationResult isAuthorized(HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
throws ServletException,
java.io.IOException
isAuthorized in class AbstractConstraintrequest - the servlet requestresponse - the servlet response
ServletException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||