info.magnolia.cms.security.auth
Interface PrincipalList

All Superinterfaces:
java.security.Principal, java.io.Serializable
All Known Subinterfaces:
GroupList, RoleList

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

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

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()
          Get name given to this principal
 boolean has(java.lang.String name)
          Checks if the name exist in this list
 void setName(java.lang.String name)
          Set principal name
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Method Detail

getName

java.lang.String getName()
Get name given to this principal

Specified by:
getName in interface java.security.Principal
Returns:
name

setName

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

Parameters:
name -

add

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

Parameters:
name -

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

Parameters:
name -


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