Package com.okta.sdk.resource.api
Class HookKeyApi
java.lang.Object
com.okta.sdk.resource.api.HookKeyApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class HookKeyApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateHookKey(KeyRequest keyRequest) Create a key Creates a key for use with other parts of the application, such as inline hooks > **Note:** Use the key name to access this key for inline hook operations.createHookKey(KeyRequest keyRequest, Map<String, String> additionalHeaders) Create a key Creates a key for use with other parts of the application, such as inline hooks > **Note:** Use the key name to access this key for inline hook operations.voiddeleteHookKey(String id) Delete a key Deletes a key by `id`.voiddeleteHookKey(String id, Map<String, String> additionalHeaders) Delete a key Deletes a key by `id`.getHookKey(String id) Retrieve a key by ID Retrieves the public portion of the Key object using the `id` parameter >**Note:** The `?getHookKey(String id, Map<String, String> additionalHeaders) Retrieve a key by ID Retrieves the public portion of the Key object using the `id` parameter >**Note:** The `?protected static com.fasterxml.jackson.databind.ObjectMappergetPublicKey(String keyId) Retrieve a public key Retrieves a public key by `keyId` >**Note:** keyId is the alias of the public key.getPublicKey(String keyId, Map<String, String> additionalHeaders) Retrieve a public key Retrieves a public key by `keyId` >**Note:** keyId is the alias of the public key.List all keys Lists all keyslistHookKeys(Map<String, String> additionalHeaders) List all keys Lists all keysList all keys (Paginated) Lists all keys This method returns a lazy, paginated iterable that automatically handles pagination.listHookKeysPaged(Map<String, String> additionalHeaders) List all keys (Paginated with additional headers) Lists all keys This method returns a lazy, paginated iterable that automatically handles pagination.replaceHookKey(String id, KeyRequest keyRequest) Replace a key Replaces a key by `id` This request replaces existing properties after passing validation.replaceHookKey(String id, KeyRequest keyRequest, Map<String, String> additionalHeaders) Replace a key Replaces a key by `id` This request replaces existing properties after passing validation.voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
HookKeyApi
public HookKeyApi() -
HookKeyApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createHookKey
Create a key Creates a key for use with other parts of the application, such as inline hooks > **Note:** Use the key name to access this key for inline hook operations. The total number of keys that you can create in an Okta org is limited to 50. The response is a [Key object](https://developer.okta.com/docs/reference/api/hook-keys/#key-object) that represents the key that you create. The `id` property in the response serves as the unique ID for the key, which you can specify when invoking other CRUD operations. The `keyId` provided in the response is the alias of the public key that you can use to get details of the public key data in a separate call. > **Note:** The keyId is the alias of the public key that you can use to retrieve the public key.- Parameters:
keyRequest- (required)- Returns:
- DetailedHookKeyInstance
- Throws:
ApiException- if fails to make API call
-
createHookKey
public DetailedHookKeyInstance createHookKey(KeyRequest keyRequest, Map<String, String> additionalHeaders) throws ApiExceptionCreate a key Creates a key for use with other parts of the application, such as inline hooks > **Note:** Use the key name to access this key for inline hook operations. The total number of keys that you can create in an Okta org is limited to 50. The response is a [Key object](https://developer.okta.com/docs/reference/api/hook-keys/#key-object) that represents the key that you create. The `id` property in the response serves as the unique ID for the key, which you can specify when invoking other CRUD operations. The `keyId` provided in the response is the alias of the public key that you can use to get details of the public key data in a separate call. > **Note:** The keyId is the alias of the public key that you can use to retrieve the public key.- Parameters:
keyRequest- (required)additionalHeaders- additionalHeaders for this call- Returns:
- DetailedHookKeyInstance
- Throws:
ApiException- if fails to make API call
-
deleteHookKey
Delete a key Deletes a key by `id`. After being deleted, the key is unrecoverable. As a safety precaution, only keys that aren't being used are eligible for deletion.- Parameters:
id- ID of the Hook Key (required)- Throws:
ApiException- if fails to make API call
-
deleteHookKey
Delete a key Deletes a key by `id`. After being deleted, the key is unrecoverable. As a safety precaution, only keys that aren't being used are eligible for deletion.- Parameters:
id- ID of the Hook Key (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getHookKey
Retrieve a key by ID Retrieves the public portion of the Key object using the `id` parameter >**Note:** The `?expand=publickey` query parameter optionally returns the full object including the details of the public key in the response body's `_embedded` property.- Parameters:
id- ID of the Hook Key (required)- Returns:
- HookKey
- Throws:
ApiException- if fails to make API call
-
getHookKey
Retrieve a key by ID Retrieves the public portion of the Key object using the `id` parameter >**Note:** The `?expand=publickey` query parameter optionally returns the full object including the details of the public key in the response body's `_embedded` property.- Parameters:
id- ID of the Hook Key (required)additionalHeaders- additionalHeaders for this call- Returns:
- HookKey
- Throws:
ApiException- if fails to make API call
-
getPublicKey
Retrieve a public key Retrieves a public key by `keyId` >**Note:** keyId is the alias of the public key.- Parameters:
keyId- id\" of the Public Key (required)- Returns:
- Embedded
- Throws:
ApiException- if fails to make API call
-
getPublicKey
public Embedded getPublicKey(String keyId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a public key Retrieves a public key by `keyId` >**Note:** keyId is the alias of the public key.- Parameters:
keyId- id\" of the Public Key (required)additionalHeaders- additionalHeaders for this call- Returns:
- Embedded
- Throws:
ApiException- if fails to make API call
-
listHookKeys
List all keys Lists all keys- Returns:
- List<HookKey>
- Throws:
ApiException- if fails to make API call
-
listHookKeys
List all keys Lists all keys- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- List<HookKey>
- Throws:
ApiException- if fails to make API call
-
listHookKeysPaged
List all keys (Paginated) Lists all keys This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.- Returns:
- Iterable<HookKey> lazy iterable over all pages
-
listHookKeysPaged
List all keys (Paginated with additional headers) Lists all keys This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
additionalHeaders- additional headers for this call- Returns:
- Iterable<HookKey> lazy iterable over all pages
-
replaceHookKey
Replace a key Replaces a key by `id` This request replaces existing properties after passing validation. > **Note:** The only parameter that you can update is the name of the key, which must be unique at all times.- Parameters:
id- ID of the Hook Key (required)keyRequest- (required)- Returns:
- DetailedHookKeyInstance
- Throws:
ApiException- if fails to make API call
-
replaceHookKey
public DetailedHookKeyInstance replaceHookKey(String id, KeyRequest keyRequest, Map<String, String> additionalHeaders) throws ApiExceptionReplace a key Replaces a key by `id` This request replaces existing properties after passing validation. > **Note:** The only parameter that you can update is the name of the key, which must be unique at all times.- Parameters:
id- ID of the Hook Key (required)keyRequest- (required)additionalHeaders- additionalHeaders for this call- Returns:
- DetailedHookKeyInstance
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-