org.bouncycastle.crypto

Class AsymmetricCipherKeyPair

public class AsymmetricCipherKeyPair extends Object

a holding class for public/private parameter pairs.
Constructor Summary
AsymmetricCipherKeyPair(CipherParameters publicParam, CipherParameters privateParam)
basic constructor.
Method Summary
CipherParametersgetPrivate()
return the private key parameters.
CipherParametersgetPublic()
return the public key parameters.

Constructor Detail

AsymmetricCipherKeyPair

public AsymmetricCipherKeyPair(CipherParameters publicParam, CipherParameters privateParam)
basic constructor.

Parameters: publicParam a public key parameters object. privateParam the corresponding private key parameters.

Method Detail

getPrivate

public CipherParameters getPrivate()
return the private key parameters.

Returns: the private key parameters.

getPublic

public CipherParameters getPublic()
return the public key parameters.

Returns: the public key parameters.