public class NestablePrincipal extends SimplePrincipal implements Group, Cloneable
| Constructor and Description |
|---|
NestablePrincipal(String name)
Creates new NestablePrincipal with the given name
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMember(Principal user)
Pushes the user onto the Principal stack and makes it the active
Principal.
|
Object |
clone() |
boolean |
isMember(Principal member)
Returns true if the passed principal is a member of the group.
|
Enumeration<Principal> |
members()
Returns an enumeration that contains the single active Principal.
|
boolean |
removeMember(Principal user)
Removes the first occurence of user from the Principal stack.
|
equals, getName, hashCode, toStringpublic NestablePrincipal(String name)
public Enumeration<Principal> members()
public boolean removeMember(Principal user)
removeMember in interface Groupuser - the principal to remove from this group.public boolean addMember(Principal user)
public boolean isMember(Principal member)
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.