Interface SymmetricKeyGenerator<S extends AlgorithmKeySpec>
- Type Parameters:
S- specification type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Generates symmetric keys for one exact specification type. Implementations
must be stateless or otherwise safe for concurrent invocation.
- Since:
- 1.0
-
Method Summary
-
Method Details
-
generateSecret
Generates a symmetric key.- Parameters:
spec- generation parameters- Returns:
- generated key
- Throws:
GeneralSecurityException- if generation fails
-