org.glassfish.security.common
Class Group
java.lang.Object
org.glassfish.security.common.PrincipalImpl
org.glassfish.security.common.Group
- All Implemented Interfaces:
- java.io.Serializable, java.security.Principal
public class Group
- extends PrincipalImpl
This class implements the EJB concept of a Group. A Group is
a privilege attribute that several Principals share. Or, in
in other words, several Principals belong to a same group.
- Author:
- Harish Prabandham
- See Also:
- Serialized Form
|
Constructor Summary |
Group(java.lang.String name)
Creates a new Group attribute |
|
Method Summary |
boolean |
equals(java.lang.Object other)
This function returns true if the object passed matches
the principal represented in this implementation |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Group
public Group(java.lang.String name)
- Creates a new Group attribute
equals
public boolean equals(java.lang.Object other)
- Description copied from class:
PrincipalImpl
- This function returns true if the object passed matches
the principal represented in this implementation
- Specified by:
equals in interface java.security.Principal- Overrides:
equals in class PrincipalImpl
- Parameters:
other - the Principal to compare with.
- Returns:
- true if the Principal passed is the same as that
encapsulated in this object, false otherwise
Copyright © 2012 GlassFish Community. All Rights Reserved.