Class Role

java.lang.Object
org.glassfish.security.common.Role
All Implemented Interfaces:
Serializable, Principal

public class Role extends Object implements Principal, Serializable
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:
  • Constructor Details

    • Role

      public Role(String name)
      Creates a new Role with a given name
      Parameters:
      name - cannot be null
    • Role

      public Role(String name, String description)
      Creates a new Role with a given name
      Parameters:
      name - cannot be null
      description - can be null
  • Method Details