Interface SymmetricKeyImporter<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.
Imports symmetric keys for one exact specification type. Implementations must
be stateless or otherwise safe for concurrent invocation.
- Since:
- 1.0
-
Method Summary
-
Method Details
-
importSecret
Imports a symmetric key.- Parameters:
spec- encoded key material and parameters- Returns:
- imported key
- Throws:
GeneralSecurityException- if validation or import fails
-