Class SSOTokenIDImpl

  • All Implemented Interfaces:
    SSOTokenID

    public class SSOTokenIDImpl
    extends Object
    implements SSOTokenID
    This class SSOTokenIDImpl implements the interface SSOTokenID and is used to identify a SSOToken object. It contains a random String and which is unique on a given SSOToken server.
    See Also:
    SSOToken
    • Constructor Detail

      • SSOTokenIDImpl

        public SSOTokenIDImpl​(SessionID sid)
        Creates a SSOTokenIDImpl object
        Parameters:
        sid - The SessionID
        See Also:
        SessionID
    • Method Detail

      • toString

        public String toString()
        This method returns the encrypted sso token string.
        Specified by:
        toString in interface SSOTokenID
        Overrides:
        toString in class Object
        Returns:
        An encrypted sso token string.
      • equals

        public boolean equals​(Object object)
        Compares this SessionID to the specified object. The result is true if and only if the argument is not null and the random string and server name are the same in both objects.
        Specified by:
        equals in interface SSOTokenID
        Overrides:
        equals in class Object
        Parameters:
        an - Object - the object to compare this SessionID against.
        Returns:
        true if the SessionID are equal; false otherwise.
      • hashCode

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