Top Description Fields Constructors Methods
org.apache.catalina.users

public Class MemoryRole

extends GenericRole<MemoryUserDatabase>
Class Inheritance
Annotations
@Deprecated
Imports
org.apache.catalina.UserDatabase, org.apache.tomcat.util.security.Escape

Deprecated

Use GenericRole instead.

Concrete implementation of org.apache.catalina.Role for the MemoryUserDatabase implementation of UserDatabase.

Author
Craig R. McClanahan
Since
4.1

Field Summary

Inherited from org.apache.catalina.users.GenericRole:
database

Constructor Summary

AccessConstructor and Description
pack-priv
MemoryRole(MemoryUserDatabase
The MemoryUserDatabase that owns this role
database
,
String
Role name of this role
rolename
,
String
Description of this role
description
)

Package-private constructor used by the factory method in MemoryUserDatabase.

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Implements java.security.Principal.toString.

Return a String representation of this role in XML format.

Inherited from org.apache.catalina.users.GenericRole:
equalsgetUserDatabasehashCodesetDescriptionsetRolename

Constructor Detail

MemoryRoleback to summary
pack-priv MemoryRole(MemoryUserDatabase database, String rolename, String description)

Package-private constructor used by the factory method in MemoryUserDatabase.

Parameters
database:MemoryUserDatabase

The MemoryUserDatabase that owns this role

rolename:String

Role name of this role

description:String

Description of this role

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements java.security.Principal.toString.

Return a String representation of this role in XML format.

Returns:String

Doc from java.security.Principal.toString.

a string representation of this Principal.

Annotations
@Override