FileDocCategorySizeDatePackage
Role.javaAPI DocApache Tomcat 6.0.142154Fri Jul 20 04:20:32 BST 2007org.apache.catalina

Role

public interface Role implements Principal

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

author
Craig R. McClanahan
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
since
4.1

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetDescription()
Return the description of this role.

public java.lang.StringgetRolename()
Return the role name of this role, which must be unique within the scope of a {@link UserDatabase}.

public UserDatabasegetUserDatabase()
Return the {@link UserDatabase} within which this Role is defined.

public voidsetDescription(java.lang.String description)
Set the description of this role.

param
description The new description

public voidsetRolename(java.lang.String rolename)
Set the role name of this role, which must be unique within the scope of a {@link UserDatabase}.

param
rolename The new role name