Package org.apache.catalina
Interface Role
- All Superinterfaces:
- Principal
- All Known Implementing Classes:
- AbstractRole,- GenericRole,- MemoryRole
Abstract representation of a security role, suitable for use in
 environments like JAAS that want to deal with Principals.
- Since:
- 4.1
- Author:
- Craig R. McClanahan
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetDescription(String description) Set the description of this role.voidsetRolename(String rolename) Set the role name of this role, which must be unique within the scope of aUserDatabase.
- 
Method Details- 
getDescriptionString getDescription()- Returns:
- the description of this role.
 
- 
setDescriptionSet the description of this role.- Parameters:
- description- The new description
 
- 
getRolenameString getRolename()- Returns:
- the role name of this role, which must be unique
 within the scope of a UserDatabase.
 
- 
setRolenameSet the role name of this role, which must be unique within the scope of aUserDatabase.- Parameters:
- rolename- The new role name
 
- 
getUserDatabaseUserDatabase getUserDatabase()- Returns:
- the UserDatabasewithin which this Role is defined.
 
 
-