|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extends java.security.acl.Group to return attributes of the group and to allow group membership to have qualifying attributes. UserGroup is intended to be a group of individual users. Implementing classes may chose to support or not support adding UserGroups as members of another UserGroup. If an implementation does not support adding a Group as a member of another Group and the addMember method is invoked with the input Principal being an implementation of java.security.acl.Group, an illegalArgumentException will be thrown.
Method Summary | |
---|---|
boolean |
addMember(Principal user)
Adds specified member to the group. |
boolean |
addMember(Principal member,
BasicAttributes attributes)
Adds member to the group with specified membership attributes |
BasicAttributes |
getAttributes()
Returns attributes for this group from security repository |
BasicAttributes |
getMembershipAttributes(Principal member)
Returns membership attributes of specified member to this group from security repository |
String |
getName()
Returns the name of this group. |
boolean |
isMember(Principal member)
Returns true if the passed principal is a member of the group |
Enumeration |
members()
Returns an enumeration of the members in the group. |
void |
modifyMembershipAttributes(Principal member,
ModificationItem[] mods)
Modify membership attributes of specified member of this group in security repository |
boolean |
removeMember(Principal member)
Removes specified member from the group. |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode, toString |
Method Detail |
public boolean addMember(Principal user)
addMember
in interface Group
Group.addMember(java.security.Principal)
public boolean addMember(Principal member, BasicAttributes attributes) throws SecAdminException
member
- Prinipal to add to the groupattributes
- attributes of this principal's membership in the group
SecAdminException
public BasicAttributes getAttributes() throws SecAdminException
SecAdminException
public BasicAttributes getMembershipAttributes(Principal member) throws SecAdminException
member
- member to retrieve membership attributes for
SecAdminException
public String getName()
getName
in interface Principal
Principal.getName()
public boolean isMember(Principal member)
isMember
in interface Group
Group.isMember(java.security.Principal)
public Enumeration members()
members
in interface Group
Group.isMember(java.security.Principal)
public void modifyMembershipAttributes(Principal member, ModificationItem[] mods) throws SecAdminException
member
- member to modify
SecAdminException
public boolean removeMember(Principal member)
removeMember
in interface Group
Group.removeMember(java.security.Principal)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |