Package io.moov.sdk
Class Authentication
- java.lang.Object
-
- io.moov.sdk.Authentication
-
public class Authentication extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateAccessTokenRequestBuildercreateAccessToken()Create or refresh an access token.CreateAccessTokenResponsecreateAccessToken(AuthTokenRequest request)Create or refresh an access token.RevokeAccessTokenRequestBuilderrevokeAccessToken()Revoke an auth token.RevokeAccessTokenResponserevokeAccessToken(java.lang.String token)Revoke an auth token.RevokeAccessTokenResponserevokeAccessToken(java.lang.String token, java.util.Optional<? extends TokenTypeHint> tokenTypeHint, java.util.Optional<java.lang.String> clientId, java.util.Optional<java.lang.String> clientSecret)Revoke an auth token.
-
-
-
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 CreateAccessTokenRequestBuilder createAccessToken()
Create or refresh an access token.- Returns:
- The call builder
-
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
-
-