Package org.openapitools.client.api
Class HookKeyApi
java.lang.Object
org.openapitools.client.api.HookKeyApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-14T14:39:12.692995-05:00[America/Chicago]")
public class HookKeyApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateHookKey
(KeyRequest keyRequest) Create a key Creates a keycreateHookKey
(KeyRequest keyRequest, Map<String, String> additionalHeaders) Create a key Creates a keyvoid
deleteHookKey
(String hookKeyId) Delete a key Deletes a key by `hookKeyId`.void
deleteHookKey
(String hookKeyId, Map<String, String> additionalHeaders) Delete a key Deletes a key by `hookKeyId`.getHookKey
(String hookKeyId) Retrieve a key Retrieves a key by `hookKeyId`getHookKey
(String hookKeyId, Map<String, String> additionalHeaders) Retrieve a key Retrieves a key by `hookKeyId`protected static com.fasterxml.jackson.databind.ObjectMapper
getPublicKey
(String publicKeyId) Retrieve a public key Retrieves a public key by `keyId`getPublicKey
(String publicKeyId, Map<String, String> additionalHeaders) Retrieve a public key Retrieves a public key by `keyId`List all keys Lists all keyslistHookKeys
(Map<String, String> additionalHeaders) List all keys Lists all keysreplaceHookKey
(String hookKeyId, KeyRequest keyRequest) Replace a key Replaces a key by `hookKeyId`replaceHookKey
(String hookKeyId, KeyRequest keyRequest, Map<String, String> additionalHeaders) Replace a key Replaces a key by `hookKeyId`void
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
HookKeyApi
public HookKeyApi() -
HookKeyApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createHookKey
Create a key Creates a key- Parameters:
keyRequest
- (required)- Returns:
- HookKey
- Throws:
ApiException
- if fails to make API call
-
createHookKey
public HookKey createHookKey(KeyRequest keyRequest, Map<String, String> additionalHeaders) throws ApiExceptionCreate a key Creates a key- Parameters:
keyRequest
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- HookKey
- Throws:
ApiException
- if fails to make API call
-
deleteHookKey
Delete a key Deletes a key by `hookKeyId`. Once deleted, the Hook Key is unrecoverable. As a safety precaution, unused keys are eligible for deletion.- Parameters:
hookKeyId
- `id` of the Hook Key (required)- Throws:
ApiException
- if fails to make API call
-
deleteHookKey
public void deleteHookKey(String hookKeyId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a key Deletes a key by `hookKeyId`. Once deleted, the Hook Key is unrecoverable. As a safety precaution, unused keys are eligible for deletion.- Parameters:
hookKeyId
- `id` of the Hook Key (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getHookKey
Retrieve a key Retrieves a key by `hookKeyId`- Parameters:
hookKeyId
- `id` of the Hook Key (required)- Returns:
- HookKey
- Throws:
ApiException
- if fails to make API call
-
getHookKey
public HookKey getHookKey(String hookKeyId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a key Retrieves a key by `hookKeyId`- Parameters:
hookKeyId
- `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`- Parameters:
publicKeyId
- `id` of the Public Key (required)- Returns:
- JsonWebKey
- Throws:
ApiException
- if fails to make API call
-
getPublicKey
public JsonWebKey getPublicKey(String publicKeyId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a public key Retrieves a public key by `keyId`- Parameters:
publicKeyId
- `id` of the Public Key (required)additionalHeaders
- additionalHeaders for this call- Returns:
- JsonWebKey
- 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
-
replaceHookKey
Replace a key Replaces a key by `hookKeyId`- Parameters:
hookKeyId
- `id` of the Hook Key (required)keyRequest
- (required)- Returns:
- HookKey
- Throws:
ApiException
- if fails to make API call
-
replaceHookKey
public HookKey replaceHookKey(String hookKeyId, KeyRequest keyRequest, Map<String, String> additionalHeaders) throws ApiExceptionReplace a key Replaces a key by `hookKeyId`- Parameters:
hookKeyId
- `id` of the Hook Key (required)keyRequest
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- HookKey
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-