Class ImmutableOauth2AccessTokenResponse

    • Method Detail

      • withAccessToken

        public final ImmutableOauth2AccessTokenResponse withAccessToken​(String value)
        Copy the current immutable object by setting a value for the accessToken attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for accessToken
        Returns:
        A modified copy of the this object
      • withTokenType

        public final ImmutableOauth2AccessTokenResponse withTokenType​(String value)
        Copy the current immutable object by setting a value for the tokenType attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for tokenType
        Returns:
        A modified copy of the this object
      • withIdToken

        public final ImmutableOauth2AccessTokenResponse withIdToken​(String value)
        Copy the current immutable object by setting a value for the idToken attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for idToken
        Returns:
        A modified copy of the this object
      • withRefreshToken

        public final ImmutableOauth2AccessTokenResponse withRefreshToken​(String value)
        Copy the current immutable object by setting a value for the refreshToken attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for refreshToken
        Returns:
        A modified copy of the this object
      • withExpiresIn

        public final ImmutableOauth2AccessTokenResponse withExpiresIn​(long value)
        Copy the current immutable object by setting a value for the expiresIn attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for expiresIn
        Returns:
        A modified copy of the this object
      • withScope

        public final ImmutableOauth2AccessTokenResponse withScope​(String value)
        Copy the current immutable object by setting a value for the scope attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for scope
        Returns:
        A modified copy of the this object
      • withJti

        public final ImmutableOauth2AccessTokenResponse withJti​(String value)
        Copy the current immutable object by setting a value for the jti attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for jti
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableOauth2AccessTokenResponse that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: accessToken, tokenType, idToken, refreshToken, expiresIn, scope, jti.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value Oauth2AccessTokenResponse with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value