public interface Role
extends java.security.Principal
Abstract representation of a security role, suitable for use in
environments like JAAS that want to deal with Principals
.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Return the description of this role.
|
java.lang.String |
getRolename()
Return the role name of this role, which must be unique
within the scope of a
UserDatabase . |
UserDatabase |
getUserDatabase()
Return the
UserDatabase within which this Role is defined. |
void |
setDescription(java.lang.String description)
Set the description of this role.
|
void |
setRolename(java.lang.String rolename)
Set the role name of this role, which must be unique
within the scope of a
UserDatabase . |
java.lang.String getDescription()
void setDescription(java.lang.String description)
description
- The new descriptionjava.lang.String getRolename()
UserDatabase
.void setRolename(java.lang.String rolename)
UserDatabase
.rolename
- The new role nameUserDatabase getUserDatabase()
UserDatabase
within which this Role is defined.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.