|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This object represents the current user. Each user must have a unique
identifier (per SecurityHandler).
For session replication, the implementation should be Serializable.
| Field Summary | |
static String |
ATTRIBUTE_PRINCIPAL
If the security handler provides a Principal
object, it should be stored into an attribute with the following
name. |
| Method Summary | |
Object |
getAttribute(String key)
Get information about the user. |
Iterator |
getAttributeNames()
Return all available names. |
String |
getId()
Return the unique id of this user. |
boolean |
isUserInRole(String role)
Check if the user is in a given role. |
void |
removeAttribute(String key)
Remove an information about the user. |
void |
setAttribute(String key,
Object value)
Set an information about the user. |
| Field Detail |
public static final String ATTRIBUTE_PRINCIPAL
Principal
object, it should be stored into an attribute with the following
name.
| Method Detail |
public String getId()
public void setAttribute(String key,
Object value)
Serializable.
key - The key identifying the information.value - The value of the information.public void removeAttribute(String key)
key - The key identifying the information.public Object getAttribute(String key)
key - The key identifying the information.
public Iterator getAttributeNames()
public boolean isUserInRole(String role)
ApplicationUtil instead.
role - The role to test.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||