info.magnolia.cms.security.auth
Interface PrincipalCollection

All Superinterfaces:
java.security.Principal, java.io.Serializable
All Known Implementing Classes:
PrincipalCollectionImpl

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

A collection of principals.

Author:
Sameer Charles $Id: PrincipalCollection.java 41137 2011-01-06 18:19:25Z gjoseph $

Method Summary
 void add(java.security.Principal principal)
           
 void clearAll()
           
 boolean contains(java.security.Principal principal)
           
 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)
           
 void set(java.util.Collection collection)
           
 void setName(java.lang.String 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

void set(java.util.Collection collection)

add

void add(java.security.Principal principal)

remove

void remove(java.security.Principal principal)

clearAll

void clearAll()

contains

boolean contains(java.security.Principal principal)

contains

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


get

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



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