01: package org.bouncycastle.crypto;
02:
03: /**
04: * interface that a public/private key pair generator should conform to.
05: */
06: public interface AsymmetricCipherKeyPairGenerator {
07: /**
08: * intialise the key pair generator.
09: *
10: * @param param the parameters the key pair is to be initialised with.
11: */
12: public void init(KeyGenerationParameters param);
13:
14: /**
15: * return an AsymmetricCipherKeyPair containing the generated keys.
16: *
17: * @return an AsymmetricCipherKeyPair containing the generated keys.
18: */
19: public AsymmetricCipherKeyPair generateKeyPair();
20: }
|