Package org.apache.catalina
Interface Role
-
- All Superinterfaces:
java.security.Principal
- All Known Implementing Classes:
AbstractRole,GenericRole,MemoryRole
public interface Role extends java.security.PrincipalAbstract representation of a security role, suitable for use in environments like JAAS that want to deal with
Principals.- Since:
- 4.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDescription()Gets the description of this role.java.lang.StringgetRolename()Gets the role name of this role, which must be unique within the scope of aUserDatabase.UserDatabasegetUserDatabase()Gets theUserDatabasewithin which this Role is defined.voidsetDescription(java.lang.String description)Sets the description of this role.voidsetRolename(java.lang.String rolename)Sets the role name of this role, which must be unique within the scope of aUserDatabase.
-
-
-
Method Detail
-
getDescription
java.lang.String getDescription()
Gets the description of this role.- Returns:
- The description of this role
-
setDescription
void setDescription(java.lang.String description)
Sets the description of this role.- Parameters:
description- The new description
-
getRolename
java.lang.String getRolename()
Gets the role name of this role, which must be unique within the scope of aUserDatabase.- Returns:
- The role name
-
setRolename
void setRolename(java.lang.String rolename)
Sets the role name of this role, which must be unique within the scope of aUserDatabase.- Parameters:
rolename- The new role name
-
getUserDatabase
UserDatabase getUserDatabase()
Gets theUserDatabasewithin which this Role is defined.- Returns:
- The UserDatabase within which this Role is defined
-
-