Class VaultTransformContext.VaultTransformRequestBuilder
java.lang.Object
org.springframework.vault.support.VaultTransformContext.VaultTransformRequestBuilder
- Enclosing class:
- VaultTransformContext
Builder for
VaultTransformContext
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a newVaultTransformContext
instance.transformation
(String transformation) Configure a transformation to be used with thetransform
operation.tweak
(byte[] tweak) Configure the tweak value for atransform
operation.
-
Method Details
-
transformation
Configure a transformation to be used with thetransform
operation.- Parameters:
transformation
- name, provided as a String.- Returns:
this
VaultTransformContext.VaultTransformRequestBuilder
.
-
tweak
Configure the tweak value for atransform
operation. Must be provided during decoding for all transformations with a tweak_source of "supplied" or "generated". Must be provided during encoding for all transformations with a tweak_source of "supplied".- Parameters:
tweak
- value must be exactly 56 bits (7 bytes), value must be supplied during any subsequent decoding after an encoding. Failure to do so will result in a decode that does not return the original value.- Returns:
this
VaultTransformContext.VaultTransformRequestBuilder
.
-
build
Build a newVaultTransformContext
instance.- Returns:
- a new
VaultTransformContext
.
-