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
  • Constructor Summary

    Constructors
    Constructor Description
    UserPrincipal​(java.lang.String userName)  
  • Method Summary

    Modifier and Type Method Description
    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, implies, toString
  • Constructor Details

    • UserPrincipal

      public UserPrincipal​(java.lang.String userName)
  • Method Details

    • 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