Interface SecretGenerator<S extends PrivateKey,P extends PublicKey>
- All Known Implementing Classes:
RsaSecretGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The interface for key pair generators.
-
Method Summary
-
Method Details
-
generateKeyPair
Generates a key pair.- Parameters:
id- Key id.ttl- Time to live in milliseconds.- Returns:
- Key pair.
-