java.security.Principal
, Role
MemoryRole
public abstract class AbstractRole extends java.lang.Object implements Role
Convenience base class for Role
implementations.
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
description |
The description of this Role.
|
protected java.lang.String |
rolename |
The role name of this Role.
|
Constructor | Description |
---|---|
AbstractRole() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getDescription() |
Return the description of this role.
|
java.lang.String |
getName() |
Make the principal name the same as the role name.
|
java.lang.String |
getRolename() |
Return the role name of this role, which must be unique
within the scope of a
UserDatabase . |
abstract UserDatabase |
getUserDatabase() |
Return the
UserDatabase within which this Role is defined. |
void |
setDescription(java.lang.String description) |
Set the description of this role.
|
void |
setRolename(java.lang.String rolename) |
Set the role name of this role, which must be unique
within the scope of a
UserDatabase . |
protected java.lang.String description
protected java.lang.String rolename
public java.lang.String getDescription()
getDescription
in interface Role
public void setDescription(java.lang.String description)
setDescription
in interface Role
description
- The new descriptionpublic java.lang.String getRolename()
UserDatabase
.getRolename
in interface Role
UserDatabase
.public void setRolename(java.lang.String rolename)
UserDatabase
.setRolename
in interface Role
rolename
- The new role namepublic abstract UserDatabase getUserDatabase()
UserDatabase
within which this Role is defined.getUserDatabase
in interface Role
UserDatabase
within which this Role is defined.public java.lang.String getName()
getName
in interface java.security.Principal
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.