org.apache.catalina.users
Class MemoryRole
java.lang.Object
org.apache.catalina.users.AbstractRole
org.apache.catalina.users.MemoryRole
- All Implemented Interfaces:
- Principal, Role
public class MemoryRole
- extends AbstractRole
Concrete implementation of Role
for the
MemoryUserDatabase
implementation of UserDatabase
.
- Since:
- 4.1
- Version:
- $Id: MemoryRole.java 939305 2010-04-29 13:43:39Z kkolinko $
- Author:
- Craig R. McClanahan
database
protected MemoryUserDatabase database
- The
MemoryUserDatabase
that owns this role.
getUserDatabase
public UserDatabase getUserDatabase()
- Return the
UserDatabase
within which this role is defined.
- Specified by:
getUserDatabase
in interface Role
- Specified by:
getUserDatabase
in class AbstractRole
toString
public String toString()
Return a String representation of this role in XML format.
- Specified by:
toString
in interface Principal
- Overrides:
toString
in class Object
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.