info.magnolia.jaas.principal
Class EntityImpl
java.lang.Object
info.magnolia.jaas.principal.EntityImpl
- All Implemented Interfaces:
- Entity, java.io.Serializable, java.security.Principal
public class EntityImpl
- extends java.lang.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
Method Summary |
void |
addProperty(java.lang.String key,
java.lang.Object value)
|
java.lang.String |
getName()
Gets name given to this principal. |
java.lang.Object |
getProperty(java.lang.String key)
|
void |
setName(java.lang.String name)
Deprecated. use addProperty(NAME, 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 |
EntityImpl
public EntityImpl()
getName
public java.lang.String getName()
- Gets name given to this principal.
- Specified by:
getName
in interface Entity
- Specified by:
getName
in interface java.security.Principal
- Returns:
- name
setName
public void setName(java.lang.String name)
- Deprecated. use addProperty(NAME, name)
- Specified by:
setName
in interface Entity
addProperty
public void addProperty(java.lang.String key,
java.lang.Object value)
- Specified by:
addProperty
in interface Entity
getProperty
public java.lang.Object getProperty(java.lang.String key)
- Specified by:
getProperty
in interface Entity
- Returns:
- the property's value, or null if undefined
toString
public java.lang.String toString()
- Specified by:
toString
in interface java.security.Principal
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.