Package io.moov.sdk

Class Authentication


  • public class Authentication
    extends java.lang.Object
    • Method Detail

      • revokeAccessToken

        public RevokeAccessTokenRequestBuilder revokeAccessToken()
        Revoke an auth token.

        Allows clients to notify the authorization server that a previously obtained refresh or access token is no longer needed.

        Returns:
        The call builder
      • revokeAccessToken

        public RevokeAccessTokenResponse revokeAccessToken​(java.lang.String token)
                                                    throws java.lang.Exception
        Revoke an auth token.

        Allows clients to notify the authorization server that a previously obtained refresh or access token is no longer needed.

        Parameters:
        token -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • revokeAccessToken

        public RevokeAccessTokenResponse revokeAccessToken​(java.lang.String token,
                                                           java.util.Optional<? extends TokenTypeHint> tokenTypeHint,
                                                           java.util.Optional<java.lang.String> clientId,
                                                           java.util.Optional<java.lang.String> clientSecret)
                                                    throws java.lang.Exception
        Revoke an auth token.

        Allows clients to notify the authorization server that a previously obtained refresh or access token is no longer needed.

        Parameters:
        token -
        tokenTypeHint - The type of token being revoked.
        clientId -
        clientSecret -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • createAccessToken

        public CreateAccessTokenResponse createAccessToken​(AuthTokenRequest request)
                                                    throws java.lang.Exception
        Create or refresh an access token.
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails