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.
@FunctionalInterface public interface KeyPairGeneratorCallbackCallback to generate aPGPKeyPairfrom aPGPKeyPairGeneratorinstance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PGPKeyPairgenerateFrom(PGPKeyPairGenerator generator)Generate aPGPKeyPairby calling a factory method on a given generator instance.
-
-
-
Method Detail
-
generateFrom
PGPKeyPair generateFrom(PGPKeyPairGenerator generator) throws PGPException
Generate aPGPKeyPairby calling a factory method on a given generator instance.- Parameters:
generator- PGPKeyPairGenerator- Returns:
- generated key pair
- Throws:
PGPException
-
-