Class UpdateKeyConfig.Request
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonBuilder<UpdateKeyConfig.Request>
io.helidon.integrations.common.rest.ApiJsonRequest<UpdateKeyConfig.Request>
io.helidon.integrations.vault.VaultRequest<UpdateKeyConfig.Request>
io.helidon.integrations.vault.secrets.transit.UpdateKeyConfig.Request
- All Implemented Interfaces:
ApiRequest<UpdateKeyConfig.Request>
- Enclosing class:
UpdateKeyConfig
Request object. Can be configured with additional headers, query parameters etc.
-
Method Summary
Modifier and TypeMethodDescriptionallowDeletion
(boolean allowed) Specifies if the key is allowed to be deleted.allowPlaintextBackup
(boolean allowBackup) If set, enables taking backup of named key in the plaintext format.static UpdateKeyConfig.Request
builder()
Fluent API builder for configuring a request.exportable
(boolean exportable) Enables keys to be exportable.minDecryptionVersion
(int version) Specifies the minimum version of ciphertext allowed to be decrypted.minEncryptionVersion
(int version) Specifies the minimum version of the key that can be used to encrypt plaintext, sign payloads, or generate HMACs.Specifies the name of the encryption key to create.Methods inherited from class io.helidon.integrations.vault.VaultRequest
add, addCommaDelimitedArray, addToCommaDelimitedArray, durationToTtl, preBuild
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonRequest
addHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaType
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilder
add, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, postBuild, toJson
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.integrations.common.rest.ApiRequest
toJson
-
Method Details
-
builder
Fluent API builder for configuring a request. The request builder is passed as is, without a build method. The equivalent of a build method isApiJsonBuilder.toJson(jakarta.json.JsonBuilderFactory)
used by theRestApi
.- Returns:
- new request builder
-
name
Specifies the name of the encryption key to create.- Parameters:
name
- key name- Returns:
- updated request
-
minDecryptionVersion
Specifies the minimum version of ciphertext allowed to be decrypted. Adjusting this as part of a key rotation policy can prevent old copies of ciphertext from being decrypted, should they fall into the wrong hands. For signatures, this value controls the minimum version of signature that can be verified against. For HMACs, this controls the minimum version of a key allowed to be used as the key for verification.- Parameters:
version
- version- Returns:
- updated request
-
minEncryptionVersion
Specifies the minimum version of the key that can be used to encrypt plaintext, sign payloads, or generate HMACs. Must be 0 (which will use the latest version) or a value greater or equal tominDecryptionVersion(int)
.- Parameters:
version
- version- Returns:
- updated request
-
allowDeletion
Specifies if the key is allowed to be deleted.- Parameters:
allowed
- whether is is allowed to delete the key- Returns:
- updated request
-
exportable
Enables keys to be exportable. This allows for all the valid keys in the key ring to be exported. Once set, this cannot be disabled.- Parameters:
exportable
- whether the key should be exportable- Returns:
- updated request
-
allowPlaintextBackup
If set, enables taking backup of named key in the plaintext format. Once set, this cannot be disabled.- Parameters:
allowBackup
- whether to allow plaintext backup- Returns:
- updated request
-