Package org.bouncycastle.openpgp.api
Interface KeyPairGeneratorCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback to generate a
PGPKeyPair
from a PGPKeyPairGenerator
instance.-
Method Summary
Modifier and TypeMethodDescriptiongenerateFrom
(PGPKeyPairGenerator generator) Generate aPGPKeyPair
by calling a factory method on a given generator instance.
-
Method Details
-
generateFrom
Generate aPGPKeyPair
by calling a factory method on a given generator instance.- Parameters:
generator
- PGPKeyPairGenerator- Returns:
- generated key pair
- Throws:
PGPException
-