Class GroupImpl
- java.lang.Object
-
- org.mozilla.jss.netscape.security.acl.GroupImpl
-
- All Implemented Interfaces:
java.security.acl.Group
,java.security.Principal
- Direct Known Subclasses:
WorldGroupImpl
@Deprecated public class GroupImpl extends java.lang.Object implements java.security.acl.Group
Deprecated.Group in java.security.acl has been deprecated and marked for removalThis class implements a group of principals.
-
-
Constructor Summary
Constructors Constructor Description GroupImpl(java.lang.String groupName)
Deprecated.Constructs a Group object with no members.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
addMember(java.security.Principal user)
Deprecated.adds the specified member to the group.boolean
equals(java.security.acl.Group another)
Deprecated.Group in java.security.acl has been deprecated and marked for removaljava.lang.String
getName()
Deprecated.return the name of the principal.int
hashCode()
Deprecated.return a hashcode for the principal.boolean
isMember(java.security.Principal member)
Deprecated.Group in java.security.acl has been deprecated and marked for removaljava.util.Enumeration<java.security.Principal>
members()
Deprecated.returns the enumeration of the members in the group.boolean
removeMember(java.security.Principal user)
Deprecated.removes the specified member from the group.java.lang.String
toString()
Deprecated.Prints a stringified version of the group.
-
-
-
Method Detail
-
addMember
public boolean addMember(java.security.Principal user)
Deprecated.adds the specified member to the group.- Specified by:
addMember
in interfacejava.security.acl.Group
- Parameters:
user
- The principal to add to the group.- Returns:
- true if the member was added - false if the member could not be added.
-
removeMember
public boolean removeMember(java.security.Principal user)
Deprecated.removes the specified member from the group.- Specified by:
removeMember
in interfacejava.security.acl.Group
- Parameters:
user
- The principal to remove from the group.- Returns:
- true if the principal was removed false if the principal was not a member
-
members
public java.util.Enumeration<java.security.Principal> members()
Deprecated.returns the enumeration of the members in the group.- Specified by:
members
in interfacejava.security.acl.Group
-
equals
@Deprecated public boolean equals(java.security.acl.Group another)
Deprecated.Group in java.security.acl has been deprecated and marked for removalThis function returns true if the group passed matches the group represented in this interface.- Parameters:
another
- The group to compare this group to.
-
toString
public java.lang.String toString()
Deprecated.Prints a stringified version of the group.- Specified by:
toString
in interfacejava.security.Principal
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.return a hashcode for the principal.- Specified by:
hashCode
in interfacejava.security.Principal
- Overrides:
hashCode
in classjava.lang.Object
-
isMember
@Deprecated public boolean isMember(java.security.Principal member)
Deprecated.Group in java.security.acl has been deprecated and marked for removalreturns true if the passed principal is a member of the group.- Specified by:
isMember
in interfacejava.security.acl.Group
- Parameters:
member
- The principal whose membership must be checked for.- Returns:
- true if the principal is a member of this group, false otherwise
-
getName
public java.lang.String getName()
Deprecated.return the name of the principal.- Specified by:
getName
in interfacejava.security.Principal
-
-