public static class VaultTransitContext.VaultTransitRequestBuilder extends Object
VaultTransitContext
.Modifier and Type | Method and Description |
---|---|
VaultTransitContext |
build()
Build a new
VaultTransitContext instance. |
VaultTransitContext.VaultTransitRequestBuilder |
context(byte[] context)
Configure a key derivation context for the
transit operation. |
VaultTransitContext.VaultTransitRequestBuilder |
nonce(byte[] nonce)
Configure the nonce value for a
transit operation. |
public VaultTransitContext.VaultTransitRequestBuilder context(byte[] context)
transit
operation.context
- key derivation context, provided as a binary data. Must be
provided if derivation is enabled.this
VaultTransitContext.VaultTransitRequestBuilder
.public VaultTransitContext.VaultTransitRequestBuilder nonce(byte[] nonce)
transit
operation. Must be provided if
convergent encryption is enabled for this key and the key was generated with
Vault 0.6.1. Not required for keys created in 0.6.2+.nonce
- value must be exactly 96 bits (12 bytes) long and the user must
ensure that for any given context (and thus, any given encryption key) this
nonce value is never reusedthis
VaultTransitContext.VaultTransitRequestBuilder
.public VaultTransitContext build()
VaultTransitContext
instance.VaultTransitContext
.Copyright © 2016–2021 Pivotal Software, Inc.. All rights reserved.