|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.jaas.principal.PrincipalCollectionImpl
public class PrincipalCollectionImpl
Principal collection implementation based on simple list. Collection is managed externally. Date: Jun 29, 2005
Constructor Summary | |
---|---|
PrincipalCollectionImpl()
|
Method Summary | |
---|---|
void |
add(java.security.Principal principal)
Adds principal to the internal collection of principals. |
void |
clearAll()
removes all principals from the collection. |
boolean |
contains(java.security.Principal principal)
Checks if this collection contains specified principal. |
boolean |
contains(java.lang.String name)
Checks if this collection contains principal with the specified name. |
java.security.Principal |
get(java.lang.String name)
Gets principal associated to the specified name from the collection. |
java.lang.String |
getName()
Gets name given to this principal. |
java.util.Iterator |
iterator()
Returns an iterator over the collection of principals. |
void |
remove(java.security.Principal principal)
Removes principal from the collection if present or does nothing in case principal was not present in the collection. |
void |
set(java.util.Collection collection)
Sets internal collection of principals. |
void |
setName(java.lang.String name)
Sets this principal name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode |
Constructor Detail |
---|
public PrincipalCollectionImpl()
Method Detail |
---|
public java.lang.String getName()
getName
in interface PrincipalCollection
getName
in interface java.security.Principal
public void setName(java.lang.String name)
setName
in interface PrincipalCollection
public void set(java.util.Collection collection)
set
in interface PrincipalCollection
collection
- public void add(java.security.Principal principal)
add
in interface PrincipalCollection
principal
- to be added to the collectionpublic void remove(java.security.Principal principal)
remove
in interface PrincipalCollection
principal
- to be removed from the collectionpublic void clearAll()
clearAll
in interface PrincipalCollection
public boolean contains(java.security.Principal principal)
contains
in interface PrincipalCollection
public boolean contains(java.lang.String name)
contains
in interface PrincipalCollection
name
-
public java.security.Principal get(java.lang.String name)
get
in interface PrincipalCollection
name
-
public java.util.Iterator iterator()
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |