Package codes.grow.packages.vault
Class TransitOptions.Builder
java.lang.Object
codes.grow.packages.vault.TransitOptions.Builder
- Enclosing class:
TransitOptions
Builder of
TransitOptions.-
Method Summary
Modifier and TypeMethodDescriptionassociatedData(byte[] associatedData) Sets associated data (AEAD keys).build()Builds the options.context(byte[] context) Sets the key derivation context (derived keys).hashAlgorithm(String hashAlgorithm) Sets the hash algorithm, e.g.keyVersion(int keyVersion) Uses a specific key version.prehashed(boolean prehashed) Marks the input as already hashed.signatureAlgorithm(String signatureAlgorithm) Sets the RSA signature algorithm:pssorpkcs1v15.
-
Method Details
-
context
Sets the key derivation context (derived keys).- Parameters:
context- context bytes- Returns:
- this builder
-
keyVersion
Uses a specific key version.- Parameters:
keyVersion- version- Returns:
- this builder
-
associatedData
Sets associated data (AEAD keys).- Parameters:
associatedData- bytes- Returns:
- this builder
-
hashAlgorithm
Sets the hash algorithm, e.g.sha2-256,sha2-512.- Parameters:
hashAlgorithm- algorithm- Returns:
- this builder
-
signatureAlgorithm
Sets the RSA signature algorithm:pssorpkcs1v15.- Parameters:
signatureAlgorithm- algorithm- Returns:
- this builder
-
prehashed
Marks the input as already hashed.- Parameters:
prehashed- flag- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-