Package io.moov.sdk

Class Authentication

    • 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​(RevokeTokenRequest revokeTokenRequest)
                                                    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:
        revokeTokenRequest -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • revokeAccessToken

        public RevokeAccessTokenResponse revokeAccessToken​(java.util.Optional<java.lang.String> xMoovVersion,
                                                           RevokeTokenRequest revokeTokenRequest)
                                                    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.

        Specified by:
        revokeAccessToken in interface SDKMethodInterfaces.MethodCallRevokeAccessToken
        Parameters:
        xMoovVersion - Specify an API version. API versioning follows the format `vYYYY.QQ.BB`, where - `YYYY` is the year - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10) - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter. - For example, `v2024.01.00` is the initial release of the first quarter of 2024. The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
        revokeTokenRequest -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • createAccessToken

        public CreateAccessTokenResponse createAccessToken​(AuthTokenRequest authTokenRequest)
                                                    throws java.lang.Exception
        Create or refresh an access token.
        Parameters:
        authTokenRequest -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • createAccessToken

        public CreateAccessTokenResponse createAccessToken​(java.util.Optional<java.lang.String> xMoovVersion,
                                                           AuthTokenRequest authTokenRequest)
                                                    throws java.lang.Exception
        Create or refresh an access token.
        Specified by:
        createAccessToken in interface SDKMethodInterfaces.MethodCallCreateAccessToken
        Parameters:
        xMoovVersion - Specify an API version. API versioning follows the format `vYYYY.QQ.BB`, where - `YYYY` is the year - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10) - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter. - For example, `v2024.01.00` is the initial release of the first quarter of 2024. The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
        authTokenRequest -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails