com.sun.enterprise.deployment
Class Role

java.lang.Object
  extended by org.glassfish.security.common.PrincipalImpl
      extended by com.sun.enterprise.deployment.Role
All Implemented Interfaces:
java.io.Serializable, java.security.Principal

public class Role
extends PrincipalImpl

In EJBs, ACL checking is done using the Roles. Roles are an abstraction of an application specific Logical Principals. These Principals do not have any properties of Principals within a Security Domain (or Realm). They merely serve as abstraction to application specific entities.

Author:
Harish Prabandham
See Also:
Serialized Form

Constructor Summary
Role(java.lang.String name)
          Creates a new Role with a given name
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getDescription()
           
 void setDescription(java.lang.String description)
           
 
Methods inherited from class org.glassfish.security.common.PrincipalImpl
getName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Role

public Role(java.lang.String name)
Creates a new Role with a given name

Method Detail

equals

public boolean equals(java.lang.Object other)
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class PrincipalImpl

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)


Copyright © 2012 GlassFish Community. All Rights Reserved.