Class RevokeTokenRequest


  • public class RevokeTokenRequest
    extends java.lang.Object
    • Constructor Detail

      • RevokeTokenRequest

        public RevokeTokenRequest​(java.lang.String token,
                                  java.util.Optional<? extends TokenTypeHint> tokenTypeHint,
                                  java.util.Optional<java.lang.String> clientId,
                                  java.util.Optional<java.lang.String> clientSecret)
      • RevokeTokenRequest

        public RevokeTokenRequest​(java.lang.String token)
    • Method Detail

      • token

        public java.lang.String token()
        The access or refresh token to revoke.
      • tokenTypeHint

        public java.util.Optional<TokenTypeHint> tokenTypeHint()
        The type of token being revoked.
      • clientId

        public java.util.Optional<java.lang.String> clientId()
        Client ID can be provided here in the body, or as the Username in HTTP Basic Auth.
      • clientSecret

        public java.util.Optional<java.lang.String> clientSecret()
        Client secret can be provided here in the body, or as the Password in HTTP Basic Auth.
      • withToken

        public RevokeTokenRequest withToken​(java.lang.String token)
        The access or refresh token to revoke.
      • withTokenTypeHint

        public RevokeTokenRequest withTokenTypeHint​(java.util.Optional<? extends TokenTypeHint> tokenTypeHint)
        The type of token being revoked.
      • withClientId

        public RevokeTokenRequest withClientId​(java.lang.String clientId)
        Client ID can be provided here in the body, or as the Username in HTTP Basic Auth.
      • withClientId

        public RevokeTokenRequest withClientId​(java.util.Optional<java.lang.String> clientId)
        Client ID can be provided here in the body, or as the Username in HTTP Basic Auth.
      • withClientSecret

        public RevokeTokenRequest withClientSecret​(java.lang.String clientSecret)
        Client secret can be provided here in the body, or as the Password in HTTP Basic Auth.
      • withClientSecret

        public RevokeTokenRequest withClientSecret​(java.util.Optional<java.lang.String> clientSecret)
        Client secret can be provided here in the body, or as the Password in HTTP Basic Auth.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object