FileDocCategorySizeDatePackage
Role.javaAPI DocGlassfish v2 API3240Fri May 04 22:31:52 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: 1.3 $ $Date: 2007/05/05 05:31:51 $
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