- All Known Implementing Classes:
CryptoProviderBuilderImpl
@API(status=STABLE,
since="1.0")
public interface CryptoProviderKeyBuilder
Required secret key configuration values cryptography transformations
provider builder.
- Since:
- 1.0
- Version:
- 1.0, 2025-05
- Author:
- (w) Iker Hernaez
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionwithSecretKey(char[] password) Sets the password used as secret key.withSecretKey(SecretKey key) Sets the secret key.
-
Method Details
-
withSecretKey
Sets the password used as secret key.- Parameters:
password- The password.- Returns:
- Next builder, for method chaining.
- Throws:
ConfigCryptoProviderException- If an error occurs creating the secret key.
-
withSecretKey
Sets the secret key.- Parameters:
key- The secret key.- Returns:
- Next builder, for method chaining.
-