@Deprecated
public class GroupImpl
extends java.lang.Object
implements java.security.acl.Group
Constructor and Description |
---|
GroupImpl(java.lang.String groupName)
Deprecated.
Constructs a Group object with no members.
|
Modifier and Type | Method and 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 removal
|
java.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 removal
|
java.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.
|
public GroupImpl(java.lang.String groupName)
groupName
- the name of the grouppublic boolean addMember(java.security.Principal user)
addMember
in interface java.security.acl.Group
user
- The principal to add to the group.public boolean removeMember(java.security.Principal user)
removeMember
in interface java.security.acl.Group
user
- The principal to remove from the group.public java.util.Enumeration<java.security.Principal> members()
members
in interface java.security.acl.Group
@Deprecated public boolean equals(java.security.acl.Group another)
another
- The group to compare this group to.public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
@Deprecated public boolean isMember(java.security.Principal member)
isMember
in interface java.security.acl.Group
member
- The principal whose membership must be checked for.public java.lang.String getName()
getName
in interface java.security.Principal