Class PofPrincipal

    • Field Detail

      • m_sName

        protected String m_sName
        The name of the identity represented by this Principal.
    • Constructor Detail

      • PofPrincipal

        public PofPrincipal​(String sName)
        Create a new PortablePrincipal with the given name.
        Parameters:
        sName - the name of the identity represented by this PortablePrincipal
    • Method Detail

      • getName

        public String getName()
        Return the name of this Principal.
        Specified by:
        getName in interface Principal
        Returns:
        the name of this Principal
      • equals

        public boolean equals​(Object o)
        Compares this Principal to the specified object.
        Specified by:
        equals in interface Principal
        Overrides:
        equals in class Object
        Parameters:
        o - a Principal to compare with
        Returns:
        true if the Principal passed in is the same as that encapsulated by this Principal, and false otherwise
      • toString

        public String toString()
        Return a string representation of this Principal.
        Specified by:
        toString in interface Principal
        Overrides:
        toString in class Object
        Returns:
        a string representation of this Principal
      • hashCode

        public int hashCode()
        Return a hashcode for this Principal.
        Specified by:
        hashCode in interface Principal
        Overrides:
        hashCode in class Object
        Returns:
        a hashcode for this Principal