Interface PrivateKeyImporter<S extends AlgorithmKeySpec>
- Type Parameters:
S- specification type
- All Known Implementing Classes:
AbstractEncodedPrivateKeyBuilder, EcdsaPrivateKeyBuilder, Ed25519PrivateKeyBuilder, Ed448PrivateKeyBuilder, MldsaPrivateKeyBuilder, SlhDsaPrivateKeyBuilder, SphincsPlusPrivateKeyBuilder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Imports private keys for one exact specification type. Implementations must
be stateless or otherwise safe for concurrent invocation.
- Since:
- 1.0
-
Method Summary
-
Method Details
-
importPrivate
Imports a private key.- Parameters:
spec- encoded key material and parameters- Returns:
- imported private key
- Throws:
GeneralSecurityException- if validation or import fails
-