Class UserPrincipal

  • All Implemented Interfaces:
    java.security.Principal

    public class UserPrincipal
    extends java.lang.Object
    implements java.security.Principal
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String iPrincipal  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getName()
      Returns the principal's name.
      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

        implies, toString
    • Field Detail

      • iPrincipal

        protected java.lang.String iPrincipal
    • Constructor Detail

      • UserPrincipal

        public UserPrincipal​(java.lang.String pPrincipal)
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the principal's name.
        Specified by:
        getName in interface java.security.Principal
        Returns:
        The principal's name
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.security.Principal
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.security.Principal
        Overrides:
        hashCode in class java.lang.Object