Class VaultTransformContext
java.lang.Object
org.springframework.vault.support.VaultTransformContext
Transform backend encode/decode context object.
- Since:
- 2.3
- Author:
- Lauren Voswinkel
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static VaultTransformContext
empty()
boolean
static VaultTransformContext
fromTransformation
(String transformation) Create aVaultTransformContext
giventransformation
bytes.static VaultTransformContext
fromTweak
(byte[] tweak) Create aVaultTransformContext
giventweak
String.byte[]
getTweak()
int
hashCode()
boolean
isEmpty()
Return whether this object is an empty one.
-
Method Details
-
builder
- Returns:
- a new
VaultTransformContext.VaultTransformRequestBuilder
.
-
empty
- Returns:
- an empty
VaultTransformContext
.
-
fromTransformation
Create aVaultTransformContext
giventransformation
bytes.- Parameters:
transformation
- name as a byte array, must not be null.- Returns:
- a
VaultTransformContext
fortransformation
.
-
fromTweak
Create aVaultTransformContext
giventweak
String.- Parameters:
tweak
- bytes, must be 7 characters long, must not be null.- Returns:
- a
VaultTransformContext
fortweak
.
-
isEmpty
public boolean isEmpty()Return whether this object is an empty one. That is, transformation and tweak are both empty.- Returns:
true
if this object is empty.
-
getTransformation
- Returns:
- the transformation name.
-
getTweak
public byte[] getTweak()- Returns:
- the tweak
-
equals
-
hashCode
public int hashCode()
-