Class WindowsDesktopSSOPrincipal

    • Constructor Detail

      • WindowsDesktopSSOPrincipal

        public WindowsDesktopSSOPrincipal​(String name)
        Constructor
        Parameters:
        name - Name for the principal.
    • Method Detail

      • getName

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

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

        public boolean equals​(Object obj)
        Compares the specified Object with this WindowsDesktopSSOPrincipal for equality. Returns true if the given object is also a WindowsDesktopSSOPrincipal and the two WindowsDesktopSSOPrincipals have the same username.
        Specified by:
        equals in interface Principal
        Overrides:
        equals in class Object
        Parameters:
        obj - Object to be compared for equality with this WindowsDesktopSSOPrincipal.
        Returns:
        true if the specified Object is equal equal to this WindowsDesktopSSOPrincipal.
      • hashCode

        public int hashCode()
        Returns a hash code for this WindowsDesktopSSOPrincipal.
        Specified by:
        hashCode in interface Principal
        Overrides:
        hashCode in class Object
        Returns:
        a hash code for this WindowsDesktopSSOPrincipal.