Package org.apache.catalina.users
Class MemoryRole
- java.lang.Object
-
- org.apache.catalina.users.AbstractRole
-
- org.apache.catalina.users.MemoryRole
-
- All Implemented Interfaces:
java.security.Principal
,Role
@Deprecated public class MemoryRole extends AbstractRole
Deprecated.UseAbstractRole
instead.Concrete implementation of
Role
for theMemoryUserDatabase
implementation ofUserDatabase
.- Since:
- 4.1
- Author:
- Craig R. McClanahan
-
-
Field Summary
Fields Modifier and Type Field Description protected MemoryUserDatabase
database
Deprecated.TheMemoryUserDatabase
that owns this role.-
Fields inherited from class org.apache.catalina.users.AbstractRole
description, rolename
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UserDatabase
getUserDatabase()
Deprecated.Return theUserDatabase
within which this role is defined.java.lang.String
toString()
Deprecated.Return a String representation of this role in XML format.-
Methods inherited from class org.apache.catalina.users.AbstractRole
getDescription, getName, getRolename, setDescription, setRolename
-
-
-
-
Field Detail
-
database
protected final MemoryUserDatabase database
Deprecated.TheMemoryUserDatabase
that owns this role.
-
-
Method Detail
-
getUserDatabase
public UserDatabase getUserDatabase()
Deprecated.Return theUserDatabase
within which this role is defined.- Specified by:
getUserDatabase
in interfaceRole
- Specified by:
getUserDatabase
in classAbstractRole
- Returns:
- the
UserDatabase
within which this Role is defined.
-
toString
public java.lang.String toString()
Deprecated.Return a String representation of this role in XML format.
- Specified by:
toString
in interfacejava.security.Principal
- Overrides:
toString
in classjava.lang.Object
-
-