Class VaultTransitContext
java.lang.Object
org.springframework.vault.support.VaultTransitContext
Transit backend encryption/decryption/rewrapping context.
- Author:
- Mark Paluch, Nanne Baars
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static VaultTransitContext
empty()
boolean
static VaultTransitContext
fromContext
(byte[] context) Create aVaultTransitContext
givencontext
bytes.static VaultTransitContext
fromNonce
(byte[] nonce) Create aVaultTransitContext
givennonce
bytes.byte[]
int
byte[]
getNonce()
int
hashCode()
-
Method Details
-
builder
- Returns:
- a new
VaultTransitContext.VaultTransitRequestBuilder
.
-
empty
- Returns:
- an empty
VaultTransitContext
.
-
fromContext
Create aVaultTransitContext
givencontext
bytes.- Parameters:
context
- context bytes, must not be null.- Returns:
- a
VaultTransitContext
forcontext
. - Since:
- 2.0
-
fromNonce
Create aVaultTransitContext
givennonce
bytes.- Parameters:
nonce
- nonce bytes, must not be null.- Returns:
- a
VaultTransitContext
fornonce
. - Since:
- 2.0
-
getContext
public byte[] getContext()- Returns:
- the key derivation context.
-
getNonce
public byte[] getNonce()- Returns:
- the
-
getKeyVersion
public int getKeyVersion()- Returns:
- the version of the key to use for the operation. Uses the latest version if
not set. Must be greater than or equal to the key's
min_encryption_version
, if set. - Since:
- 3.0.3
-
equals
-
hashCode
public int hashCode()
-