01: package org.bouncycastle.crypto;
02:
03: /**
04: * a holding class for public/private parameter pairs.
05: */
06: public class AsymmetricCipherKeyPair {
07: private CipherParameters publicParam;
08: private CipherParameters privateParam;
09:
10: /**
11: * basic constructor.
12: *
13: * @param publicParam a public key parameters object.
14: * @param privateParam the corresponding private key parameters.
15: */
16: public AsymmetricCipherKeyPair(CipherParameters publicParam,
17: CipherParameters privateParam) {
18: this .publicParam = publicParam;
19: this .privateParam = privateParam;
20: }
21:
22: /**
23: * return the public key parameters.
24: *
25: * @return the public key parameters.
26: */
27: public CipherParameters getPublic() {
28: return publicParam;
29: }
30:
31: /**
32: * return the private key parameters.
33: *
34: * @return the private key parameters.
35: */
36: public CipherParameters getPrivate() {
37: return privateParam;
38: }
39: }
|