com.ebasetech.ufs.security.authentication
Class UserPrincipal
java.lang.Object
com.ebasetech.ufs.security.authentication.UserPrincipal
- All Implemented Interfaces:
- java.io.Serializable, java.security.Principal
public class UserPrincipal
- extends java.lang.Object
- implements java.security.Principal, java.io.Serializable
UserPrincipal class represents a userid, and contains no other information.
A new instance can be created with e.g.:
UserPrincipal up = new UserPrincipal("Fred");
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
hashCode, toString |
UserPrincipal
public UserPrincipal(java.lang.String userName)
getName
public java.lang.String getName()
- Specified by:
getName
in interface java.security.Principal
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interface java.security.Principal
- Overrides:
equals
in class java.lang.Object