Class VaultTransitContext
java.lang.Object
org.springframework.vault.support.VaultTransitContext
Transit backend encryption/decryption/rewrapping context.
- Author:
- Mark Paluch, Nanne Baars
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static VaultTransitContextempty()booleanstatic VaultTransitContextfromContext(byte[] context) Create aVaultTransitContextgivencontextbytes.static VaultTransitContextfromNonce(byte[] nonce) Create aVaultTransitContextgivennoncebytes.byte[]intbyte[]getNonce()inthashCode()
-
Method Details
-
builder
- Returns:
- a new
VaultTransitContext.VaultTransitRequestBuilder.
-
empty
- Returns:
- an empty
VaultTransitContext.
-
fromContext
Create aVaultTransitContextgivencontextbytes.- Parameters:
context- context bytes, must not be null.- Returns:
- a
VaultTransitContextforcontext. - Since:
- 2.0
-
fromNonce
Create aVaultTransitContextgivennoncebytes.- Parameters:
nonce- nonce bytes, must not be null.- Returns:
- a
VaultTransitContextfornonce. - 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()
-