info.magnolia.cms.security.auth
Interface PrincipalCollection

All Superinterfaces:
java.security.Principal, java.io.Serializable

public interface PrincipalCollection
extends java.security.Principal, java.io.Serializable

Author:
Sameer Charles $Id: PrincipalCollection.java 32667 2010-03-13 00:37:06Z gjoseph $

Method Summary
 void add(java.security.Principal principal)
          Add to collection
 void clearAll()
          Clear collection
 boolean contains(java.security.Principal principal)
          Check if this collection contains specified object
 boolean contains(java.lang.String name)
          Checks if this collection contains object with the specified name
 java.security.Principal get(java.lang.String name)
          Get principal associated to the specified name from the collection
 java.lang.String getName()
           
 void remove(java.security.Principal principal)
          Remove from the collection
 void set(java.util.Collection collection)
          Set collection
 void setName(java.lang.String name)
          Set this principal name
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Method Detail

getName

java.lang.String getName()
Specified by:
getName in interface java.security.Principal

setName

void setName(java.lang.String name)
Set this principal name


set

void set(java.util.Collection collection)
Set collection

Parameters:
collection -

add

void add(java.security.Principal principal)
Add to collection

Parameters:
principal - to be added to the collection

remove

void remove(java.security.Principal principal)
Remove from the collection

Parameters:
principal - to be removed from the collection

clearAll

void clearAll()
Clear collection


contains

boolean contains(java.security.Principal principal)
Check if this collection contains specified object

Parameters:
principal -
Returns:
true if the specified object exist in the collection

contains

boolean contains(java.lang.String name)
Checks if this collection contains object with the specified name

Parameters:
name -
Returns:
true if the collection contains the principal by the specified name

get

java.security.Principal get(java.lang.String name)
Get principal associated to the specified name from the collection

Parameters:
name -
Returns:
principal object associated to the specified name


Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.