public class RolePrincipal extends BasicRole
Group,
Serialized Form| Constructor and Description |
|---|
RolePrincipal(String roleName)
Creates a role principal with the specified role name containing no roles
within it.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMember(Principal role)
Adds a role this role principal.
|
boolean |
isMember(Principal member) |
Enumeration<? extends Principal> |
members() |
boolean |
removeMember(Principal role)
Removes a role from this role principal.
|
equals, getName, hashCodepublic RolePrincipal(String roleName)
roleName - NullPointerException - if roleName was null.public boolean addMember(Principal role)
IllegalArgumentException - if the principal to be added is not a Group
NullPointerException If the role was null.public boolean removeMember(Principal role)
public boolean isMember(Principal member)
public Enumeration<? extends Principal> members()
Copyright © 2013. All Rights Reserved.