Class PrincipalImpl

  • All Implemented Interfaces:
    java.security.Principal, JackrabbitPrincipal

    public class PrincipalImpl
    extends java.lang.Object
    implements JackrabbitPrincipal
    Default implementation of the JackrabbitPrincipal interface.
    • Constructor Summary

      Constructors 
      Constructor Description
      PrincipalImpl​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Two principals are equal, if their names are.
      java.lang.String getName()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Constructor Detail

      • PrincipalImpl

        public PrincipalImpl​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • equals

        public boolean equals​(java.lang.Object obj)
        Two principals are equal, if their names are.
        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
        Returns:
        the hash code of the principals name.
      • toString

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