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()
Return the description of this role.
|
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(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-2014 Apache Software Foundation. All Rights Reserved.