info.magnolia.jaas.principal
Class EntityImpl
java.lang.Object
info.magnolia.jaas.principal.EntityImpl
- All Implemented Interfaces:
- Entity, Serializable, Principal
public class EntityImpl
- extends Object
- implements Entity
Implementation fo the security entity.
- Author:
- Sameer Charles $Id: EntityImpl.java 41137 2011-01-06 18:19:25Z gjoseph $
- See Also:
- Serialized Form
EntityImpl
public EntityImpl()
getName
public String getName()
- Gets name given to this principal.
- Specified by:
getName
in interface Entity
- Specified by:
getName
in interface Principal
- Returns:
- name
setName
public void setName(String name)
- Deprecated. use addProperty(NAME, name)
- Specified by:
setName
in interface Entity
addProperty
public void addProperty(String key,
Object value)
- Specified by:
addProperty
in interface Entity
getProperty
public Object getProperty(String key)
- Specified by:
getProperty
in interface Entity
- Returns:
- the property's value, or null if undefined
toString
public String toString()
- Specified by:
toString
in interface Principal
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.