org.apache.catalina

Interface Role

public interface Role extends Principal

Abstract representation of a security role, suitable for use in environments like JAAS that want to deal with Principals.

Since: 4.1

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig R. McClanahan

Method Summary
StringgetDescription()
Return the description of this role.
StringgetRolename()
Return the role name of this role, which must be unique within the scope of a UserDatabase.
UserDatabasegetUserDatabase()
Return the UserDatabase within which this Role is defined.
voidsetDescription(String description)
Set the description of this role.
voidsetRolename(String rolename)
Set the role name of this role, which must be unique within the scope of a UserDatabase.

Method Detail

getDescription

public String getDescription()
Return the description of this role.

getRolename

public String getRolename()
Return the role name of this role, which must be unique within the scope of a UserDatabase.

getUserDatabase

public UserDatabase getUserDatabase()
Return the UserDatabase within which this Role is defined.

setDescription

public void setDescription(String description)
Set the description of this role.

Parameters: description The new description

setRolename

public void setRolename(String rolename)
Set the role name of this role, which must be unique within the scope of a UserDatabase.

Parameters: rolename The new role name

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.