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 newVaultTransformContextinstance.transformation(String transformation) Configure a transformation to be used with thetransformoperation.tweak(byte[] tweak) Configure the tweak value for atransformoperation.
-
Method Details
-
transformation
Configure a transformation to be used with thetransformoperation.- Parameters:
transformation- name, provided as a String.- Returns:
thisVaultTransformContext.VaultTransformRequestBuilder.
-
tweak
Configure the tweak value for atransformoperation. 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:
thisVaultTransformContext.VaultTransformRequestBuilder.
-
build
Build a newVaultTransformContextinstance.- Returns:
- a new
VaultTransformContext.
-