public class SimpleGroup extends SimplePrincipal
Constructor and Description |
---|
SimpleGroup(String name)
Creates a new group with the given name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addMember(Principal user) |
boolean |
isMember(Principal member) |
Enumeration<? extends Principal> |
members() |
boolean |
removeMember(Principal user) |
String |
toString() |
equals, getName, hashCode
public SimpleGroup(String name)
name
- Group name.public boolean addMember(Principal user)
public boolean isMember(Principal member)
public Enumeration<? extends Principal> members()
public boolean removeMember(Principal user)
public String toString()
toString
in interface Principal
toString
in class SimplePrincipal
Copyright © 2021 JBoss by Red Hat. All rights reserved.