org.ow2.shelbie.core.internal.security
Class RolesPrincipal

java.lang.Object
  extended by org.ow2.shelbie.core.internal.security.RolesPrincipal
All Implemented Interfaces:
Serializable, Group, Principal

public class RolesPrincipal
extends Object
implements Group, Serializable

Created with IntelliJ IDEA. User: guillaume Date: 07/02/13 Time: 14:55 To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Field Summary
static String ROLES
           
 
Constructor Summary
RolesPrincipal(String... roles)
           
 
Method Summary
 boolean addMember(Principal principal)
           
 String getName()
           
 boolean isMember(Principal principal)
           
 Enumeration<? extends Principal> members()
           
 boolean removeMember(Principal principal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Field Detail

ROLES

public static final String ROLES
See Also:
Constant Field Values
Constructor Detail

RolesPrincipal

public RolesPrincipal(String... roles)
Method Detail

addMember

public boolean addMember(Principal principal)
Specified by:
addMember in interface Group

removeMember

public boolean removeMember(Principal principal)
Specified by:
removeMember in interface Group

isMember

public boolean isMember(Principal principal)
Specified by:
isMember in interface Group

members

public Enumeration<? extends Principal> members()
Specified by:
members in interface Group

getName

public String getName()
Specified by:
getName in interface Principal


Copyright © 2013 OW2 Consortium. All Rights Reserved.