public interface Role extends 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 |
---|---|
String |
getDescription() |
String |
getRolename() |
UserDatabase |
getUserDatabase() |
void |
setDescription(String description)
Set the description of this role.
|
void |
setRolename(String rolename)
Set the role name of this role, which must be unique
within the scope of a
UserDatabase . |
String getDescription()
void setDescription(String description)
description
- The new descriptionString getRolename()
UserDatabase
.void setRolename(String rolename)
UserDatabase
.rolename
- The new role nameUserDatabase getUserDatabase()
UserDatabase
within which this Role is defined.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.