Package com.okta.sdk.resource.api
Class ApplicationSsoCredentialOAuth2ClientAuthApi
java.lang.Object
com.okta.sdk.resource.api.ApplicationSsoCredentialOAuth2ClientAuthApi
@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 ApplicationSsoCredentialOAuth2ClientAuthApi
extends Object
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionactivateOAuth2ClientJsonWebKey
(String appId, String keyId) Activate an OAuth 2.0 Client JSON Web Key Activates an OAuth 2.0 Client JSON Web Key by `keyId`Activate an OAuth 2.0 Client JSON Web Key Activates an OAuth 2.0 Client JSON Web Key by `keyId`activateOAuth2ClientSecret
(String appId, String secretId) Activate an OAuth 2.0 Client Secret Activates an OAuth 2.0 Client Secret by `secretId`Activate an OAuth 2.0 Client Secret Activates an OAuth 2.0 Client Secret by `secretId`addJwk
(String appId, OAuth2ClientJsonWebKeyRequestBody oauth2ClientJsonWebKeyRequestBody) Add a JSON Web Key Adds a new JSON Web Key to the client’s JSON Web Keys.addJwk
(String appId, OAuth2ClientJsonWebKeyRequestBody oauth2ClientJsonWebKeyRequestBody, Map<String, String> additionalHeaders) Add a JSON Web Key Adds a new JSON Web Key to the client’s JSON Web Keys.createOAuth2ClientSecret
(String appId, OAuth2ClientSecretRequestBody oauth2ClientSecretRequestBody) Create an OAuth 2.0 Client Secret Creates an OAuth 2.0 Client Secret object with a new active client secret.createOAuth2ClientSecret
(String appId, OAuth2ClientSecretRequestBody oauth2ClientSecretRequestBody, Map<String, String> additionalHeaders) Create an OAuth 2.0 Client Secret Creates an OAuth 2.0 Client Secret object with a new active client secret.deactivateOAuth2ClientJsonWebKey
(String appId, String keyId) Deactivate an OAuth 2.0 Client JSON Web Key Deactivates an OAuth 2.0 Client JSON Web Key by `keyId`.Deactivate an OAuth 2.0 Client JSON Web Key Deactivates an OAuth 2.0 Client JSON Web Key by `keyId`.deactivateOAuth2ClientSecret
(String appId, String secretId) Deactivate an OAuth 2.0 Client Secret Deactivates an OAuth 2.0 Client Secret by `secretId`.Deactivate an OAuth 2.0 Client Secret Deactivates an OAuth 2.0 Client Secret by `secretId`.void
Delete an OAuth 2.0 Client JSON Web Key Deletes an OAuth 2.0 Client JSON Web Key by `keyId`.void
Delete an OAuth 2.0 Client JSON Web Key Deletes an OAuth 2.0 Client JSON Web Key by `keyId`.void
deleteOAuth2ClientSecret
(String appId, String secretId) Delete an OAuth 2.0 Client Secret Deletes an OAuth 2.0 Client Secret by `secretId`.void
Delete an OAuth 2.0 Client Secret Deletes an OAuth 2.0 Client Secret by `secretId`.Retrieve an OAuth 2.0 Client JSON Web Key Retrieves an OAuth 2.0 Client JSON Web Key by `keyId`.Retrieve an OAuth 2.0 Client JSON Web Key Retrieves an OAuth 2.0 Client JSON Web Key by `keyId`.getOAuth2ClientSecret
(String appId, String secretId) Retrieve an OAuth 2.0 Client Secret Retrieves an OAuth 2.0 Client Secret by `secretId`Retrieve an OAuth 2.0 Client Secret Retrieves an OAuth 2.0 Client Secret by `secretId`protected static com.fasterxml.jackson.databind.ObjectMapper
List all the OAuth 2.0 Client JSON Web Keys Lists all JSON Web Keys for an OAuth 2.0 client appList all the OAuth 2.0 Client JSON Web Keys Lists all JSON Web Keys for an OAuth 2.0 client applistOAuth2ClientSecrets
(String appId) List all OAuth 2.0 Client Secrets Lists all client secrets for an OAuth 2.0 client applistOAuth2ClientSecrets
(String appId, Map<String, String> additionalHeaders) List all OAuth 2.0 Client Secrets Lists all client secrets for an OAuth 2.0 client appvoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
ApplicationSsoCredentialOAuth2ClientAuthApi
public ApplicationSsoCredentialOAuth2ClientAuthApi() -
ApplicationSsoCredentialOAuth2ClientAuthApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateOAuth2ClientJsonWebKey
public OAuth2ClientJsonWebKey activateOAuth2ClientJsonWebKey(String appId, String keyId) throws ApiException Activate an OAuth 2.0 Client JSON Web Key Activates an OAuth 2.0 Client JSON Web Key by `keyId`- Parameters:
appId
- Application ID (required)keyId
- Unique `id` of the OAuth 2.0 Client JSON Web Key (required)- Returns:
- OAuth2ClientJsonWebKey
- Throws:
ApiException
- if fails to make API call
-
activateOAuth2ClientJsonWebKey
public OAuth2ClientJsonWebKey activateOAuth2ClientJsonWebKey(String appId, String keyId, Map<String, String> additionalHeaders) throws ApiExceptionActivate an OAuth 2.0 Client JSON Web Key Activates an OAuth 2.0 Client JSON Web Key by `keyId`- Parameters:
appId
- Application ID (required)keyId
- Unique `id` of the OAuth 2.0 Client JSON Web Key (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2ClientJsonWebKey
- Throws:
ApiException
- if fails to make API call
-
activateOAuth2ClientSecret
public OAuth2ClientSecret activateOAuth2ClientSecret(String appId, String secretId) throws ApiException Activate an OAuth 2.0 Client Secret Activates an OAuth 2.0 Client Secret by `secretId`- Parameters:
appId
- Application ID (required)secretId
- Unique `id` of the OAuth 2.0 Client Secret (required)- Returns:
- OAuth2ClientSecret
- Throws:
ApiException
- if fails to make API call
-
activateOAuth2ClientSecret
public OAuth2ClientSecret activateOAuth2ClientSecret(String appId, String secretId, Map<String, String> additionalHeaders) throws ApiExceptionActivate an OAuth 2.0 Client Secret Activates an OAuth 2.0 Client Secret by `secretId`- Parameters:
appId
- Application ID (required)secretId
- Unique `id` of the OAuth 2.0 Client Secret (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2ClientSecret
- Throws:
ApiException
- if fails to make API call
-
addJwk
public OAuth2ClientJsonWebKey addJwk(String appId, OAuth2ClientJsonWebKeyRequestBody oauth2ClientJsonWebKeyRequestBody) throws ApiException Add a JSON Web Key Adds a new JSON Web Key to the client’s JSON Web Keys. > **Note:** This API doesn't allow you to add a key if the existing key doesn't have a `kid`. This is also consistent with how the [Dynamic Client Registration](/openapi/okta-oauth/oauth/tag/Client/) or [Applications](/openapi/okta-management/management/tag/Application/) APIs behave, as they don't allow the creation of multiple keys without `kids`. Use the [Replace an Application](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication) or the [Replace a Client Application](/openapi/okta-oauth/oauth/tag/Client/#tag/Client/operation/replaceClient) operation to update the JWKS or [Delete an OAuth 2.0 Client JSON Web Key](/openapi/okta-management/management/tag/ApplicationSSOCredentialOAuth2ClientAuth/#tag/ApplicationSSOCredentialOAuth2ClientAuth/operation/deletejwk) and re-add the key with a `kid`.- Parameters:
appId
- Application ID (required)oauth2ClientJsonWebKeyRequestBody
- (required)- Returns:
- OAuth2ClientJsonWebKey
- Throws:
ApiException
- if fails to make API call
-
addJwk
public OAuth2ClientJsonWebKey addJwk(String appId, OAuth2ClientJsonWebKeyRequestBody oauth2ClientJsonWebKeyRequestBody, Map<String, String> additionalHeaders) throws ApiExceptionAdd a JSON Web Key Adds a new JSON Web Key to the client’s JSON Web Keys. > **Note:** This API doesn't allow you to add a key if the existing key doesn't have a `kid`. This is also consistent with how the [Dynamic Client Registration](/openapi/okta-oauth/oauth/tag/Client/) or [Applications](/openapi/okta-management/management/tag/Application/) APIs behave, as they don't allow the creation of multiple keys without `kids`. Use the [Replace an Application](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication) or the [Replace a Client Application](/openapi/okta-oauth/oauth/tag/Client/#tag/Client/operation/replaceClient) operation to update the JWKS or [Delete an OAuth 2.0 Client JSON Web Key](/openapi/okta-management/management/tag/ApplicationSSOCredentialOAuth2ClientAuth/#tag/ApplicationSSOCredentialOAuth2ClientAuth/operation/deletejwk) and re-add the key with a `kid`.- Parameters:
appId
- Application ID (required)oauth2ClientJsonWebKeyRequestBody
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2ClientJsonWebKey
- Throws:
ApiException
- if fails to make API call
-
createOAuth2ClientSecret
public OAuth2ClientSecret createOAuth2ClientSecret(String appId, OAuth2ClientSecretRequestBody oauth2ClientSecretRequestBody) throws ApiException Create an OAuth 2.0 Client Secret Creates an OAuth 2.0 Client Secret object with a new active client secret. You can create up to two Secret objects. An error is returned if you attempt to create more than two Secret objects. > **Note:** This API lets you bring your own secret. If [token_endpoint_auth_method](/openapi/okta-management/management/tag/Application/#tag/Application/operation/createApplication!path=4/credentials/oauthClient/token_endpoint_auth_method&t=request) of the app is `client_secret_jwt`, then the minimum length of `client_secret` is 32 characters. If no secret is specified in the request, Okta adds a new system-generated secret.- Parameters:
appId
- Application ID (required)oauth2ClientSecretRequestBody
- (optional)- Returns:
- OAuth2ClientSecret
- Throws:
ApiException
- if fails to make API call
-
createOAuth2ClientSecret
public OAuth2ClientSecret createOAuth2ClientSecret(String appId, OAuth2ClientSecretRequestBody oauth2ClientSecretRequestBody, Map<String, String> additionalHeaders) throws ApiExceptionCreate an OAuth 2.0 Client Secret Creates an OAuth 2.0 Client Secret object with a new active client secret. You can create up to two Secret objects. An error is returned if you attempt to create more than two Secret objects. > **Note:** This API lets you bring your own secret. If [token_endpoint_auth_method](/openapi/okta-management/management/tag/Application/#tag/Application/operation/createApplication!path=4/credentials/oauthClient/token_endpoint_auth_method&t=request) of the app is `client_secret_jwt`, then the minimum length of `client_secret` is 32 characters. If no secret is specified in the request, Okta adds a new system-generated secret.- Parameters:
appId
- Application ID (required)oauth2ClientSecretRequestBody
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2ClientSecret
- Throws:
ApiException
- if fails to make API call
-
deactivateOAuth2ClientJsonWebKey
public OAuth2ClientJsonWebKey deactivateOAuth2ClientJsonWebKey(String appId, String keyId) throws ApiException Deactivate an OAuth 2.0 Client JSON Web Key Deactivates an OAuth 2.0 Client JSON Web Key by `keyId`.- Parameters:
appId
- Application ID (required)keyId
- Unique `id` of the OAuth 2.0 Client JSON Web Key (required)- Returns:
- OAuth2ClientJsonWebKey
- Throws:
ApiException
- if fails to make API call
-
deactivateOAuth2ClientJsonWebKey
public OAuth2ClientJsonWebKey deactivateOAuth2ClientJsonWebKey(String appId, String keyId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate an OAuth 2.0 Client JSON Web Key Deactivates an OAuth 2.0 Client JSON Web Key by `keyId`.- Parameters:
appId
- Application ID (required)keyId
- Unique `id` of the OAuth 2.0 Client JSON Web Key (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2ClientJsonWebKey
- Throws:
ApiException
- if fails to make API call
-
deactivateOAuth2ClientSecret
public OAuth2ClientSecret deactivateOAuth2ClientSecret(String appId, String secretId) throws ApiException Deactivate an OAuth 2.0 Client Secret Deactivates an OAuth 2.0 Client Secret by `secretId`. You can't deactivate a secret if it's the only secret of the client.- Parameters:
appId
- Application ID (required)secretId
- Unique `id` of the OAuth 2.0 Client Secret (required)- Returns:
- OAuth2ClientSecret
- Throws:
ApiException
- if fails to make API call
-
deactivateOAuth2ClientSecret
public OAuth2ClientSecret deactivateOAuth2ClientSecret(String appId, String secretId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate an OAuth 2.0 Client Secret Deactivates an OAuth 2.0 Client Secret by `secretId`. You can't deactivate a secret if it's the only secret of the client.- Parameters:
appId
- Application ID (required)secretId
- Unique `id` of the OAuth 2.0 Client Secret (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2ClientSecret
- Throws:
ApiException
- if fails to make API call
-
deleteOAuth2ClientSecret
Delete an OAuth 2.0 Client Secret Deletes an OAuth 2.0 Client Secret by `secretId`. You can only delete an inactive Secret.- Parameters:
appId
- Application ID (required)secretId
- Unique `id` of the OAuth 2.0 Client Secret (required)- Throws:
ApiException
- if fails to make API call
-
deleteOAuth2ClientSecret
public void deleteOAuth2ClientSecret(String appId, String secretId, Map<String, String> additionalHeaders) throws ApiExceptionDelete an OAuth 2.0 Client Secret Deletes an OAuth 2.0 Client Secret by `secretId`. You can only delete an inactive Secret.- Parameters:
appId
- Application ID (required)secretId
- Unique `id` of the OAuth 2.0 Client Secret (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
deletejwk
Delete an OAuth 2.0 Client JSON Web Key Deletes an OAuth 2.0 Client JSON Web Key by `keyId`. You can only delete an inactive key.- Parameters:
appId
- Application ID (required)keyId
- Unique `id` of the OAuth 2.0 Client JSON Web Key (required)- Throws:
ApiException
- if fails to make API call
-
deletejwk
public void deletejwk(String appId, String keyId, Map<String, String> additionalHeaders) throws ApiExceptionDelete an OAuth 2.0 Client JSON Web Key Deletes an OAuth 2.0 Client JSON Web Key by `keyId`. You can only delete an inactive key.- Parameters:
appId
- Application ID (required)keyId
- Unique `id` of the OAuth 2.0 Client JSON Web Key (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getJwk
Retrieve an OAuth 2.0 Client JSON Web Key Retrieves an OAuth 2.0 Client JSON Web Key by `keyId`.- Parameters:
appId
- Application ID (required)keyId
- Unique `id` of the OAuth 2.0 Client JSON Web Key (required)- Returns:
- OAuth2ClientJsonWebKey
- Throws:
ApiException
- if fails to make API call
-
getJwk
public OAuth2ClientJsonWebKey getJwk(String appId, String keyId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an OAuth 2.0 Client JSON Web Key Retrieves an OAuth 2.0 Client JSON Web Key by `keyId`.- Parameters:
appId
- Application ID (required)keyId
- Unique `id` of the OAuth 2.0 Client JSON Web Key (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2ClientJsonWebKey
- Throws:
ApiException
- if fails to make API call
-
getOAuth2ClientSecret
Retrieve an OAuth 2.0 Client Secret Retrieves an OAuth 2.0 Client Secret by `secretId`- Parameters:
appId
- Application ID (required)secretId
- Unique `id` of the OAuth 2.0 Client Secret (required)- Returns:
- OAuth2ClientSecret
- Throws:
ApiException
- if fails to make API call
-
getOAuth2ClientSecret
public OAuth2ClientSecret getOAuth2ClientSecret(String appId, String secretId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an OAuth 2.0 Client Secret Retrieves an OAuth 2.0 Client Secret by `secretId`- Parameters:
appId
- Application ID (required)secretId
- Unique `id` of the OAuth 2.0 Client Secret (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2ClientSecret
- Throws:
ApiException
- if fails to make API call
-
listJwk
List all the OAuth 2.0 Client JSON Web Keys Lists all JSON Web Keys for an OAuth 2.0 client app- Parameters:
appId
- Application ID (required)- Returns:
- List<OAuth2ClientJsonWebKey>
- Throws:
ApiException
- if fails to make API call
-
listJwk
public List<OAuth2ClientJsonWebKey> listJwk(String appId, Map<String, String> additionalHeaders) throws ApiExceptionList all the OAuth 2.0 Client JSON Web Keys Lists all JSON Web Keys for an OAuth 2.0 client app- Parameters:
appId
- Application ID (required)additionalHeaders
- additionalHeaders for this call- Returns:
- List<OAuth2ClientJsonWebKey>
- Throws:
ApiException
- if fails to make API call
-
listOAuth2ClientSecrets
List all OAuth 2.0 Client Secrets Lists all client secrets for an OAuth 2.0 client app- Parameters:
appId
- Application ID (required)- Returns:
- List<OAuth2ClientSecret>
- Throws:
ApiException
- if fails to make API call
-
listOAuth2ClientSecrets
public List<OAuth2ClientSecret> listOAuth2ClientSecrets(String appId, Map<String, String> additionalHeaders) throws ApiExceptionList all OAuth 2.0 Client Secrets Lists all client secrets for an OAuth 2.0 client app- Parameters:
appId
- Application ID (required)additionalHeaders
- additionalHeaders for this call- Returns:
- List<OAuth2ClientSecret>
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-