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.UseAbstractRoleinstead.Concrete implementation of
Rolefor theMemoryUserDatabaseimplementation ofUserDatabase.- Since:
- 4.1
- Author:
- Craig R. McClanahan
-
-
Field Summary
Fields Modifier and Type Field Description protected MemoryUserDatabasedatabaseDeprecated.TheMemoryUserDatabasethat 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 UserDatabasegetUserDatabase()Deprecated.Return theUserDatabasewithin which this role is defined.java.lang.StringtoString()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.TheMemoryUserDatabasethat owns this role.
-
-
Method Detail
-
getUserDatabase
public UserDatabase getUserDatabase()
Deprecated.Return theUserDatabasewithin which this role is defined.- Specified by:
getUserDatabasein interfaceRole- Specified by:
getUserDatabasein classAbstractRole- Returns:
- the
UserDatabasewithin which this Role is defined.
-
toString
public java.lang.String toString()
Deprecated.Return a String representation of this role in XML format.
- Specified by:
toStringin interfacejava.security.Principal- Overrides:
toStringin classjava.lang.Object
-
-