Class VaultTransitContext
java.lang.Object
org.springframework.vault.support.VaultTransitContext
Transit backend encryption/decryption/rewrapping context.
- Author:
- Mark Paluch
-
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[]
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
-
equals
-
hashCode
public int hashCode()
-