1package org.bouncycastle.crypto; 2 3/** 4 * a holding class for public/private parameter pairs. 5 */ 6public class AsymmetricCipherKeyPair 7{ 8 private CipherParameters publicParam; 9 private CipherParameters privateParam; 10 11 /** 12 * basic constructor. 13 * 14 * @param publicParam a public key parameters object. 15 * @param privateParam the corresponding private key parameters. 16 */ 17 public AsymmetricCipherKeyPair( 18 CipherParameters publicParam, 19 CipherParameters privateParam) 20 { 21 this.publicParam = publicParam; 22 this.privateParam = privateParam; 23 } 24 25 /** 26 * return the public key parameters. 27 * 28 * @return the public key parameters. 29 */ 30 public CipherParameters getPublic() 31 { 32 return publicParam; 33 } 34 35 /** 36 * return the private key parameters. 37 * 38 * @return the private key parameters. 39 */ 40 public CipherParameters getPrivate() 41 { 42 return privateParam; 43 } 44} 45