PicketLink Federation Common Server Bindings for JBoss AS 2.1.6.Final-redhat-2

org.picketlink.identity.federation.bindings.jboss.subject
Class PicketLinkGroup

java.lang.Object
  extended by org.picketlink.identity.federation.bindings.jboss.subject.PicketLinkPrincipal
      extended by org.picketlink.identity.federation.bindings.jboss.subject.PicketLinkGroup
All Implemented Interfaces:
Serializable, Group, Principal

public class PicketLinkGroup
extends PicketLinkPrincipal
implements Group

A Principal Group used to register roles in JBoss

Since:
Jan 16, 2009
Author:
Anil.Saldhana@redhat.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.picketlink.identity.federation.bindings.jboss.subject.PicketLinkPrincipal
name
 
Constructor Summary
PicketLinkGroup(String name)
           
 
Method Summary
 boolean addMember(Principal role)
          Add a role principal to group
 boolean isMember(Principal role)
          Check if the role is a member of the group
 Enumeration<? extends Principal> members()
          Get the group members
 boolean removeMember(Principal user)
          Remove role from groups
 
Methods inherited from class org.picketlink.identity.federation.bindings.jboss.subject.PicketLinkPrincipal
equals, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Constructor Detail

PicketLinkGroup

public PicketLinkGroup(String name)
Method Detail

addMember

public boolean addMember(Principal role)
Add a role principal to group

Specified by:
addMember in interface Group
See Also:
Group.addMember(java.security.Principal)

isMember

public boolean isMember(Principal role)
Check if the role is a member of the group

Specified by:
isMember in interface Group
See Also:
Group.isMember(java.security.Principal)

members

public Enumeration<? extends Principal> members()
Get the group members

Specified by:
members in interface Group
See Also:
Group.members()

removeMember

public boolean removeMember(Principal user)
Remove role from groups

Specified by:
removeMember in interface Group
See Also:
Group.removeMember(java.security.Principal)

PicketLink Federation Common Server Bindings for JBoss AS 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.