info.magnolia.cms.security.auth
Interface PrincipalList

All Superinterfaces:
java.security.Principal, java.io.Serializable
All Known Subinterfaces:
GroupList, RoleList
All Known Implementing Classes:
AbstractPrincipalList, GroupListImpl, RoleListImpl

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

A list of Strings.

Version:
$Revision: $ ($Author: $)

Method Summary
 void add(java.lang.String name)
          Add a name to the list.
 java.util.Collection<java.lang.String> getList()
          Gets list of groups/roles as strings.
 java.lang.String getName()
           
 boolean has(java.lang.String name)
          Checks if the name exist in this list.
 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)

add

void add(java.lang.String name)
Add a name to the list.


getList

java.util.Collection<java.lang.String> getList()
Gets list of groups/roles as strings.


has

boolean has(java.lang.String name)
Checks if the name exist in this list.



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