| |
|
| java.lang.Object org.mortbay.jetty.security.Constraint
Constraint | public class Constraint implements Cloneable,Serializable(Code) | | Describe an auth and/or data constraint.
author: Greg Wilkins (gregw) |
DC_UNSETDC_NONEDC_INTEGRALDC_CONFIDENTIAL | final public static int DC_UNSETDC_NONEDC_INTEGRALDC_CONFIDENTIAL(Code) | | |
Constraint | public Constraint()(Code) | | Constructor.
|
Constraint | public Constraint(String name, String role)(Code) | | Conveniance Constructor.
Parameters: name - Parameters: role - |
getAuthenticate | public boolean getAuthenticate()(Code) | | True if the constraint requires request authentication |
getDataConstraint | public int getDataConstraint()(Code) | | Data constrain indicator: 0=DC+NONE, 1=DC_INTEGRAL & 2=DC_CONFIDENTIAL |
getRoles | public String[] getRoles()(Code) | | List of roles for this constraint. |
hasDataConstraint | public boolean hasDataConstraint()(Code) | | True if a data constraint has been set. |
hasRole | public boolean hasRole(String role)(Code) | | Parameters: role - True if the constraint contains the role. |
isAnyRole | public boolean isAnyRole()(Code) | | True if any user role is permitted. |
isForbidden | public boolean isForbidden()(Code) | | True if authentication required but no roles set |
setAuthenticate | public void setAuthenticate(boolean authenticate)(Code) | | Parameters: authenticate - True if users must be authenticated |
setDataConstraint | public void setDataConstraint(int c)(Code) | | Parameters: c - |
setName | public void setName(String name)(Code) | | Parameters: name - |
|
|
|