SecurityRoleDescriptorpublic class SecurityRoleDescriptor extends Descriptor implements com.sun.enterprise.deployment.web.SecurityRole
Constructors Summary |
---|
public SecurityRoleDescriptor(String name, String description)Construct a SecurityRoleDescriptor from the given role name and description.
super(name, description);
| public SecurityRoleDescriptor(com.sun.enterprise.deployment.Role role)Construct a SecurityRoleDescriptor from the given role object.
super(role.getName(), role.getDescription());
| public SecurityRoleDescriptor()Default constructor.
|
Methods Summary |
---|
public boolean | equals(java.lang.Object other)Equality on rolename.
if (other instanceof SecurityRoleDescriptor &&
this.getName().equals( ((SecurityRoleDescriptor) other).getName() )) {
return true;
}
return false;
| public int | hashCode()My hashcode.
return this.getName().hashCode();
| public void | print(java.lang.StringBuffer toStringBuffer)Formatted string representing my state.
toStringBuffer.append("SecurityRole ");
super.print(toStringBuffer);
|
|