Class CreateKey.Request
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonBuilder<CreateKey.Request>
io.helidon.integrations.common.rest.ApiJsonRequest<CreateKey.Request>
io.helidon.integrations.vault.VaultRequest<CreateKey.Request>
io.helidon.integrations.vault.secrets.transit.CreateKey.Request
- All Implemented Interfaces:
- ApiRequest<CreateKey.Request>
- Enclosing class:
- CreateKey
Request object. Can be configured with additional headers, query parameters etc.
- 
Method SummaryModifier and TypeMethodDescriptionallowPlaintextBackup(boolean allowBackup) If set, enables taking backup of named key in the plaintext format.static CreateKey.Requestbuilder()Fluent API builder for configuring a request.convergentEncryption(boolean convergent) If enabled, the key will support convergent encryption, where the same plaintext creates the same ciphertext.derived(boolean derived) Specifies if key derivation is to be used.exportable(boolean exportable) Enables keys to be exportable.Specifies the name of the encryption key to create.Specifies the type of key to create.Methods inherited from class io.helidon.integrations.vault.VaultRequestadd, addCommaDelimitedArray, addToCommaDelimitedArray, durationToTtl, preBuildMethods inherited from class io.helidon.integrations.common.rest.ApiJsonRequestaddHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaTypeMethods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilderadd, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, postBuild, toJsonMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.integrations.common.rest.ApiRequesttoJson
- 
Method Details- 
builderFluent 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
 
- 
nameSpecifies the name of the encryption key to create.- Parameters:
- name- key name
- Returns:
- updated request
 
- 
convergentEncryptionIf enabled, the key will support convergent encryption, where the same plaintext creates the same ciphertext. This requires derived to be set to true. When enabled, each encryption(/decryption/rewrap/datakey) operation will derive a nonce value rather than randomly generate it. Optional, defaults tofalse.- Parameters:
- convergent- whether the key supports convergent encryption
- Returns:
- updated request
 
- 
derivedSpecifies if key derivation is to be used. If enabled, all encrypt/decrypt requests to this named key must provide a context which is used for key derivation. Optional, defaults tofalse.- Parameters:
- derived- whether key derivation should be used
- Returns:
- updated request
 
- 
exportableEnables keys to be exportable. This allows for all the valid keys in the key ring to be exported. Once set, this cannot be disabled. Optional, defaults tofalse.- Parameters:
- exportable- whether the key is exportable
- Returns:
- updated request
 
- 
allowPlaintextBackupIf set, enables taking backup of named key in the plaintext format. Once set, this cannot be disabled. Optional, defaults tofalse.- Parameters:
- allowBackup- whether to allow plain text backup
- Returns:
- updated request
 
- 
typeSpecifies the type of key to create. The currently-supported types are:- aes128-gcm96- AES-128 wrapped with GCM using a 96-bit nonce size AEAD (symmetric, supports derivation and convergent encryption)
- aes256-gcm96- AES-256 wrapped with GCM using a 96-bit nonce size AEAD (symmetric, supports derivation and convergent encryption, default)
- chacha20-poly1305 - ChaCha20-Poly1305 AEAD (symmetric, supports derivation and convergent encryption)-
- ed25519- ED25519 (asymmetric, supports derivation). When using derivation, a sign operation with the same context will derive the same key and signature; this is a signing analogue to convergent_encryption
- ecdsa-p256- ECDSA using the P-256 elliptic curve (asymmetric)
- ecdsa-p384- ECDSA using the P-384 elliptic curve (asymmetric)
- ecds-p521- ECDSA using the P-521 elliptic curve (asymmetric)
- rsa-2048- RSA with bit size of 2048 (asymmetric)
- rsa-3072- RSA with bit size of 3072 (asymmetric)
- rsa-4096- RSA with bit size of 4096 (asymmetric)
 aes256-gcm96.- Parameters:
- type- type to use
- Returns:
- updated request
 
 
-