- 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 TypeMethodDescription@NotNull CryptoProviderBuilderwithSecretKey(@javax.validation.constraints.NotNull char[] password) Sets the password used as secret key.@NotNull CryptoProviderBuilderwithSecretKey(@NotNull SecretKey key) Sets the secret key.
-
Method Details
-
withSecretKey
@NotNull @NotNull CryptoProviderBuilder withSecretKey(@NotNull @javax.validation.constraints.NotNull char[] password) 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.
-