Class AbstractRole
java.lang.Object
org.apache.catalina.users.AbstractRole
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Make the principal name the same as the role name.voidsetDescription(String description) Set the description of this role.voidsetRolename(String rolename) Set the role name of this role, which must be unique within the scope of aUserDatabase.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.catalina.Role
getUserDatabase
-
Field Details
-
description
The description of this Role. -
rolename
The role name of this Role.
-
-
Constructor Details
-
AbstractRole
public AbstractRole()
-
-
Method Details
-
getDescription
- Specified by:
getDescriptionin interfaceRole- Returns:
- the description of this role.
-
setDescription
Description copied from interface:RoleSet the description of this role.- Specified by:
setDescriptionin interfaceRole- Parameters:
description- The new description
-
getRolename
- Specified by:
getRolenamein interfaceRole- Returns:
- the role name of this role, which must be unique within the scope of a
UserDatabase.
-
setRolename
Description copied from interface:RoleSet the role name of this role, which must be unique within the scope of aUserDatabase.- Specified by:
setRolenamein interfaceRole- Parameters:
rolename- The new role name
-
getName
-