Package com.okta.sdk.resource.api
Class UserOAuthApi
java.lang.Object
com.okta.sdk.resource.api.UserOAuthApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T08:35:59.300824-05:00[America/Chicago]",
comments="Generator version: 7.8.0")
public class UserOAuthApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static com.fasterxml.jackson.databind.ObjectMapper
getRefreshTokenForUserAndClient
(String userId, String clientId, String tokenId, String expand) Retrieve a Refresh Token for a Client Retrieves a refresh Token issued for the specified User and clientgetRefreshTokenForUserAndClient
(String userId, String clientId, String tokenId, String expand, Map<String, String> additionalHeaders) Retrieve a Refresh Token for a Client Retrieves a refresh Token issued for the specified User and clientlistRefreshTokensForUserAndClient
(String userId, String clientId, String expand, String after, Integer limit) List all Refresh Tokens for a Client Lists all refresh Tokens issued for the specified User and clientlistRefreshTokensForUserAndClient
(String userId, String clientId, String expand, String after, Integer limit, Map<String, String> additionalHeaders) List all Refresh Tokens for a Client Lists all refresh Tokens issued for the specified User and clientvoid
revokeTokenForUserAndClient
(String userId, String clientId, String tokenId) Revoke a Token for a Client Revokes the specified refresh Tokenvoid
revokeTokenForUserAndClient
(String userId, String clientId, String tokenId, Map<String, String> additionalHeaders) Revoke a Token for a Client Revokes the specified refresh Tokenvoid
revokeTokensForUserAndClient
(String userId, String clientId) Revoke all Refresh Tokens for a Client Revokes all refresh Tokens issued for the specified User and clientvoid
Revoke all Refresh Tokens for a Client Revokes all refresh Tokens issued for the specified User and clientvoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
UserOAuthApi
public UserOAuthApi() -
UserOAuthApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getRefreshTokenForUserAndClient
public OAuth2RefreshToken getRefreshTokenForUserAndClient(String userId, String clientId, String tokenId, String expand) throws ApiException Retrieve a Refresh Token for a Client Retrieves a refresh Token issued for the specified User and client- Parameters:
userId
- ID of an existing Okta user (required)clientId
- `client_id` of the app (required)tokenId
- `id` of Token (required)expand
- Valid value: `scope`. If specified, scope details are included in the `_embedded` attribute. (optional)- Returns:
- OAuth2RefreshToken
- Throws:
ApiException
- if fails to make API call
-
getRefreshTokenForUserAndClient
public OAuth2RefreshToken getRefreshTokenForUserAndClient(String userId, String clientId, String tokenId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Refresh Token for a Client Retrieves a refresh Token issued for the specified User and client- Parameters:
userId
- ID of an existing Okta user (required)clientId
- `client_id` of the app (required)tokenId
- `id` of Token (required)expand
- Valid value: `scope`. If specified, scope details are included in the `_embedded` attribute. (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2RefreshToken
- Throws:
ApiException
- if fails to make API call
-
listRefreshTokensForUserAndClient
public List<OAuth2RefreshToken> listRefreshTokensForUserAndClient(String userId, String clientId, String expand, String after, Integer limit) throws ApiException List all Refresh Tokens for a Client Lists all refresh Tokens issued for the specified User and client- Parameters:
userId
- ID of an existing Okta user (required)clientId
- `client_id` of the app (required)expand
- Valid value: `scope`. If specified, scope details are included in the `_embedded` attribute. (optional)after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit
- Specifies the number of tokens to return (optional, default to 20)- Returns:
- List<OAuth2RefreshToken>
- Throws:
ApiException
- if fails to make API call
-
listRefreshTokensForUserAndClient
public List<OAuth2RefreshToken> listRefreshTokensForUserAndClient(String userId, String clientId, String expand, String after, Integer limit, Map<String, String> additionalHeaders) throws ApiExceptionList all Refresh Tokens for a Client Lists all refresh Tokens issued for the specified User and client- Parameters:
userId
- ID of an existing Okta user (required)clientId
- `client_id` of the app (required)expand
- Valid value: `scope`. If specified, scope details are included in the `_embedded` attribute. (optional)after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit
- Specifies the number of tokens to return (optional, default to 20)additionalHeaders
- additionalHeaders for this call- Returns:
- List<OAuth2RefreshToken>
- Throws:
ApiException
- if fails to make API call
-
revokeTokenForUserAndClient
public void revokeTokenForUserAndClient(String userId, String clientId, String tokenId) throws ApiException Revoke a Token for a Client Revokes the specified refresh Token- Parameters:
userId
- ID of an existing Okta user (required)clientId
- `client_id` of the app (required)tokenId
- `id` of Token (required)- Throws:
ApiException
- if fails to make API call
-
revokeTokenForUserAndClient
public void revokeTokenForUserAndClient(String userId, String clientId, String tokenId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke a Token for a Client Revokes the specified refresh Token- Parameters:
userId
- ID of an existing Okta user (required)clientId
- `client_id` of the app (required)tokenId
- `id` of Token (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
revokeTokensForUserAndClient
Revoke all Refresh Tokens for a Client Revokes all refresh Tokens issued for the specified User and client- Parameters:
userId
- ID of an existing Okta user (required)clientId
- `client_id` of the app (required)- Throws:
ApiException
- if fails to make API call
-
revokeTokensForUserAndClient
public void revokeTokensForUserAndClient(String userId, String clientId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke all Refresh Tokens for a Client Revokes all refresh Tokens issued for the specified User and client- Parameters:
userId
- ID of an existing Okta user (required)clientId
- `client_id` of the app (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-