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

public Class MemoryUser

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

Deprecated

Use GenericUser instead.

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

Author
Craig R. McClanahan
Since
4.1

Field Summary

Inherited from org.apache.catalina.users.GenericUser:
databasegroupsroles

Constructor Summary

AccessConstructor and Description
pack-priv
MemoryUser(MemoryUserDatabase
The MemoryUserDatabase that owns this user
database
,
String
Logon username of the new user
username
,
String
Logon password of the new user
password
,
String
Full name of the new user
fullName
)

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 user.

public String

Returns:

the XML representation
toXml
()

Return a String representation of this user in XML format.

Inherited from org.apache.catalina.users.GenericUser:
addGroupaddRoleequalsgetGroupsgetRolesgetUserDatabasehashCodeisInGroupisInRoleremoveGroupremoveGroupsremoveRoleremoveRolessetFullNamesetPasswordsetUsername

Constructor Detail

MemoryUserback to summary
pack-priv MemoryUser(MemoryUserDatabase database, String username, String password, String fullName)

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

Parameters
database:MemoryUserDatabase

The MemoryUserDatabase that owns this user

username:String

Logon username of the new user

password:String

Logon password of the new user

fullName:String

Full name of the new user

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements java.security.Principal.toString.

Return a String representation of this user.

Returns:String

Doc from java.security.Principal.toString.

a string representation of this Principal.

Annotations
@Override
toXmlback to summary
public String toXml()

Return a String representation of this user in XML format.

Implementation Note

- For backwards compatibility, the reader that processes this entry will accept either username or name for the username property.

Returns:String

the XML representation