|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dhmp.security.User
Principal that represents the user
| Constructor Summary | |
User(java.lang.String name)
Constructs a new instance. |
|
User(java.lang.String name,
javax.security.auth.Subject subject)
Constructs a new instance. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Retrieves the user's name. |
javax.security.auth.Subject |
getSubject()
Retrieves the current Subject. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
toString |
| Constructor Detail |
public User(java.lang.String name)
name - representing this user.
public User(java.lang.String name,
javax.security.auth.Subject subject)
name - representing this user.| Method Detail |
public java.lang.String getName()
getName in interface java.security.Principalpublic javax.security.auth.Subject getSubject()
public boolean equals(java.lang.Object o)
equals in interface java.security.Principalpublic int hashCode()
hashCode in interface java.security.Principal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||