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");
UserPrincipal up = new UserPrincipal("Fred");
- See Also:
 - Serialized Form
 
- 
Constructor Summary
Constructors Constructor Description UserPrincipal(java.lang.String userName) - 
Method Summary
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.security.Principal
hashCode, implies, toString 
- 
Constructor Details
- 
UserPrincipal
public UserPrincipal(java.lang.String userName) 
 - 
 - 
Method Details
- 
getName
public java.lang.String getName()- Specified by:
 getNamein interfacejava.security.Principal
 - 
equals
public boolean equals(java.lang.Object obj)- Specified by:
 equalsin interfacejava.security.Principal- Overrides:
 equalsin classjava.lang.Object
 
 -