Class SecurityPrincipal

    • Constructor Detail

      • SecurityPrincipal

        public SecurityPrincipal​(String name)
        Constructs SecurityPrincipal object.
        Parameters:
        name - the name of the principal
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Compares with given object.
        Specified by:
        equals in interface Principal
        Overrides:
        equals in class Object
        Parameters:
        o - the given object
        Returns:
        false if the given object is not equal to this principal.
      • getName

        public String getName()
        Returns the name of the principal.
        Specified by:
        getName in interface Principal
        Returns:
        the name of the principal.
      • toString

        public String toString()
        Converts to string.
        Specified by:
        toString in interface Principal
        Overrides:
        toString in class Object
        Returns:
        String the principal name string.