Class SimplePrincipal

  • All Implemented Interfaces:
    java.security.Principal

    public class SimplePrincipal
    extends java.lang.Object
    implements java.security.Principal
    Version:
    $Revision: 1 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String username  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimplePrincipal​(java.lang.String username)  
    • Method Summary

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

      • username

        private java.lang.String username
    • Constructor Detail

      • SimplePrincipal

        public SimplePrincipal​(java.lang.String username)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • 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