Class SSOPrincipal

  • All Implemented Interfaces:
    Principal

    public class SSOPrincipal
    extends Object
    implements Principal
    This class SSOPrincipalrepresents the entities such as a user or a service. It implements java.security.Principal interface.
    • Constructor Detail

      • SSOPrincipal

        public SSOPrincipal​(String name)
        Creates a SSOPrincipal object
        Parameters:
        String - The name of the principal
    • Method Detail

      • equals

        public boolean equals​(Object object)
        Compares this principal to the specified object. Returns true if the object passed in matches the principal.
        Specified by:
        equals in interface Principal
        Overrides:
        equals in class Object
        Parameters:
        Object - The object to be compared
        Returns:
        trueif the principal match. false
      • getName

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

        public String toString()
        Returns the string representation of this object
        Specified by:
        toString in interface Principal
        Overrides:
        toString in class Object
        Returns:
        String The string representation of this object