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 SummaryConstructors Constructor Description UserPrincipal(java.lang.String userName)
- 
Method SummaryMethods inherited from class java.lang.ObjectgetClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.security.PrincipalhashCode, implies, toString
- 
Constructor Details- 
UserPrincipalpublic UserPrincipal(java.lang.String userName)
 
- 
- 
Method Details- 
getNamepublic java.lang.String getName()- Specified by:
- getNamein interface- java.security.Principal
 
- 
equalspublic boolean equals(java.lang.Object obj)- Specified by:
- equalsin interface- java.security.Principal
- Overrides:
- equalsin class- java.lang.Object
 
 
-