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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static VaultTransformContextempty()booleanstatic VaultTransformContextfromTransformation(String transformation) Create aVaultTransformContextgiventransformationbytes.static VaultTransformContextfromTweak(byte[] tweak) Create aVaultTransformContextgiventweakString.byte[]getTweak()inthashCode()booleanisEmpty()Return whether this object is an empty one.
-
Method Details
-
builder
- Returns:
- a new
VaultTransformContext.VaultTransformRequestBuilder.
-
empty
- Returns:
- an empty
VaultTransformContext.
-
fromTransformation
Create aVaultTransformContextgiventransformationbytes.- Parameters:
transformation- name as a byte array, must not be null.- Returns:
- a
VaultTransformContextfortransformation.
-
fromTweak
Create aVaultTransformContextgiventweakString.- Parameters:
tweak- bytes, must be 7 characters long, must not be null.- Returns:
- a
VaultTransformContextfortweak.
-
isEmpty
public boolean isEmpty()Return whether this object is an empty one. That is, transformation and tweak are both empty.- Returns:
trueif this object is empty.
-
getTransformation
- Returns:
- the transformation name.
-
getTweak
public byte[] getTweak()- Returns:
- the tweak
-
equals
-
hashCode
public int hashCode()
-