|
||||||||||
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
Date: Jun 29, 2005
Constructor Summary | |
---|---|
PrincipalCollectionImpl()
|
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()
Get name given to this principal |
java.util.Iterator |
iterator()
Returns an iterator on principals |
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 |
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
principal
-
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 |