Package com.okta.sdk.resource.api
Class AuthorizationServerClientsApi
java.lang.Object
com.okta.sdk.resource.api.AuthorizationServerClientsApi
@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 AuthorizationServerClientsApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static com.fasterxml.jackson.databind.ObjectMapper
getRefreshTokenForAuthorizationServerAndClient
(String authServerId, String clientId, String tokenId, String expand) Retrieve a refresh token for a Client Retrieves a refresh token for a ClientgetRefreshTokenForAuthorizationServerAndClient
(String authServerId, String clientId, String tokenId, String expand, Map<String, String> additionalHeaders) Retrieve a refresh token for a Client Retrieves a refresh token for a ClientlistOAuth2ClientsForAuthorizationServer
(String authServerId) List all Client resources for an authorization server Lists all Client resources for which the specified authorization server has tokenslistOAuth2ClientsForAuthorizationServer
(String authServerId, Map<String, String> additionalHeaders) List all Client resources for an authorization server Lists all Client resources for which the specified authorization server has tokenslistRefreshTokensForAuthorizationServerAndClient
(String authServerId, String clientId, String expand, String after, Integer limit) List all refresh tokens for a Client Lists all refresh tokens issued by an authorization server for a specific ClientlistRefreshTokensForAuthorizationServerAndClient
(String authServerId, String clientId, String expand, String after, Integer limit, Map<String, String> additionalHeaders) List all refresh tokens for a Client Lists all refresh tokens issued by an authorization server for a specific Clientvoid
revokeRefreshTokenForAuthorizationServerAndClient
(String authServerId, String clientId, String tokenId) Revoke a refresh token for a Client Revokes a refresh token for a Clientvoid
revokeRefreshTokenForAuthorizationServerAndClient
(String authServerId, String clientId, String tokenId, Map<String, String> additionalHeaders) Revoke a refresh token for a Client Revokes a refresh token for a Clientvoid
revokeRefreshTokensForAuthorizationServerAndClient
(String authServerId, String clientId) Revoke all refresh tokens for a Client Revokes all refresh tokens for a Clientvoid
revokeRefreshTokensForAuthorizationServerAndClient
(String authServerId, String clientId, Map<String, String> additionalHeaders) Revoke all refresh tokens for a Client Revokes all refresh tokens for a Clientvoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
AuthorizationServerClientsApi
public AuthorizationServerClientsApi() -
AuthorizationServerClientsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getRefreshTokenForAuthorizationServerAndClient
public OAuth2RefreshToken getRefreshTokenForAuthorizationServerAndClient(String authServerId, String clientId, String tokenId, String expand) throws ApiException Retrieve a refresh token for a Client Retrieves a refresh token for a Client- Parameters:
authServerId
- `id` of the Authorization Server (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
-
getRefreshTokenForAuthorizationServerAndClient
public OAuth2RefreshToken getRefreshTokenForAuthorizationServerAndClient(String authServerId, String clientId, String tokenId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a refresh token for a Client Retrieves a refresh token for a Client- Parameters:
authServerId
- `id` of the Authorization Server (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
-
listOAuth2ClientsForAuthorizationServer
public List<OAuth2Client> listOAuth2ClientsForAuthorizationServer(String authServerId) throws ApiException List all Client resources for an authorization server Lists all Client resources for which the specified authorization server has tokens- Parameters:
authServerId
- `id` of the Authorization Server (required)- Returns:
- List<OAuth2Client>
- Throws:
ApiException
- if fails to make API call
-
listOAuth2ClientsForAuthorizationServer
public List<OAuth2Client> listOAuth2ClientsForAuthorizationServer(String authServerId, Map<String, String> additionalHeaders) throws ApiExceptionList all Client resources for an authorization server Lists all Client resources for which the specified authorization server has tokens- Parameters:
authServerId
- `id` of the Authorization Server (required)additionalHeaders
- additionalHeaders for this call- Returns:
- List<OAuth2Client>
- Throws:
ApiException
- if fails to make API call
-
listRefreshTokensForAuthorizationServerAndClient
public List<OAuth2RefreshToken> listRefreshTokensForAuthorizationServerAndClient(String authServerId, String clientId, String expand, String after, Integer limit) throws ApiException List all refresh tokens for a Client Lists all refresh tokens issued by an authorization server for a specific Client- Parameters:
authServerId
- `id` of the Authorization Server (required)clientId
- `client_id` of the app (required)expand
- Valid value: `scope`. If specified, scope details are included in the `_embedded` attribute. (optional)after
- Specifies the pagination cursor for the next page of tokens (optional)limit
- The maximum number of tokens to return (maximum 200) (optional, default to -1)- Returns:
- List<OAuth2RefreshToken>
- Throws:
ApiException
- if fails to make API call
-
listRefreshTokensForAuthorizationServerAndClient
public List<OAuth2RefreshToken> listRefreshTokensForAuthorizationServerAndClient(String authServerId, 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 by an authorization server for a specific Client- Parameters:
authServerId
- `id` of the Authorization Server (required)clientId
- `client_id` of the app (required)expand
- Valid value: `scope`. If specified, scope details are included in the `_embedded` attribute. (optional)after
- Specifies the pagination cursor for the next page of tokens (optional)limit
- The maximum number of tokens to return (maximum 200) (optional, default to -1)additionalHeaders
- additionalHeaders for this call- Returns:
- List<OAuth2RefreshToken>
- Throws:
ApiException
- if fails to make API call
-
revokeRefreshTokenForAuthorizationServerAndClient
public void revokeRefreshTokenForAuthorizationServerAndClient(String authServerId, String clientId, String tokenId) throws ApiException Revoke a refresh token for a Client Revokes a refresh token for a Client- Parameters:
authServerId
- `id` of the Authorization Server (required)clientId
- `client_id` of the app (required)tokenId
- `id` of Token (required)- Throws:
ApiException
- if fails to make API call
-
revokeRefreshTokenForAuthorizationServerAndClient
public void revokeRefreshTokenForAuthorizationServerAndClient(String authServerId, String clientId, String tokenId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke a refresh token for a Client Revokes a refresh token for a Client- Parameters:
authServerId
- `id` of the Authorization Server (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
-
revokeRefreshTokensForAuthorizationServerAndClient
public void revokeRefreshTokensForAuthorizationServerAndClient(String authServerId, String clientId) throws ApiException Revoke all refresh tokens for a Client Revokes all refresh tokens for a Client- Parameters:
authServerId
- `id` of the Authorization Server (required)clientId
- `client_id` of the app (required)- Throws:
ApiException
- if fails to make API call
-
revokeRefreshTokensForAuthorizationServerAndClient
public void revokeRefreshTokensForAuthorizationServerAndClient(String authServerId, String clientId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke all refresh tokens for a Client Revokes all refresh tokens for a Client- Parameters:
authServerId
- `id` of the Authorization Server (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()
-