Class TokenRevocationClient

    • Constructor Detail

      • TokenRevocationClient

        public TokenRevocationClient​(java.lang.String url)
        Constructs a token revocation client by providing a REST url where the token service is located.
        Parameters:
        url - The REST Service location.
    • Method Detail

      • execTokenRevocation

        public TokenRevocationResponse execTokenRevocation​(java.lang.String clientId,
                                                           java.lang.String clientSecret,
                                                           java.lang.String token)
        Executes the call to the REST Service requesting the token revocation and processes the response.
        Parameters:
        clientId - The client identifier.
        clientSecret - The client secret.
        token - The token that the client wants to get revoked.
        Returns:
        The token revocation response.
      • execTokenRevocation

        public TokenRevocationResponse execTokenRevocation​(java.lang.String clientId,
                                                           java.lang.String clientSecret,
                                                           java.lang.String token,
                                                           io.jans.as.model.common.TokenTypeHint tokenTypeHint)
        Executes the call to the REST Service requesting the token revocation and processes the response.
        Parameters:
        clientId - The client identifier.
        clientSecret - The client secret.
        token - The token that the client wants to get revoked.
        tokenTypeHint - A hint about the type of the token submitted for revocation.
        Returns:
        The token revocation response.
      • exec

        public TokenRevocationResponse exec()
        Executes the call to the REST Service and processes the response.
        Returns:
        The token revocation response.