Interface Role
- All Superinterfaces:
Principal
- All Known Implementing Classes:
AbstractRole, GenericRole
Abstract representation of a security role, suitable for use in environments like JAAS that want to deal with
Principals.
- Since:
- 4.1
-
Method Summary
Modifier and TypeMethodDescriptionGets the description of this role.Gets the role name of this role, which must be unique within the scope of aUserDatabase.Gets theUserDatabasewithin which this Role is defined.voidsetDescription(String description) Sets the description of this role.voidsetRolename(String rolename) Sets the role name of this role, which must be unique within the scope of aUserDatabase.
-
Method Details
-
getDescription
-
setDescription
Sets the description of this role.- Parameters:
description- The new description
-
getRolename
String getRolename()Gets the role name of this role, which must be unique within the scope of aUserDatabase.- Returns:
- The role name
-
setRolename
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
-