Package org.bouncycastle.crypto
Class AsymmetricCipherKeyPair
java.lang.Object
org.bouncycastle.crypto.AsymmetricCipherKeyPair
a holding class for public/private parameter pairs.
-
Constructor Summary
ConstructorDescriptionAsymmetricCipherKeyPair
(CipherParameters publicParam, CipherParameters privateParam) Deprecated.use AsymmetricKeyParameterAsymmetricCipherKeyPair
(AsymmetricKeyParameter publicParam, AsymmetricKeyParameter privateParam) basic constructor. -
Method Summary
Modifier and TypeMethodDescriptionreturn the private key parameters.return the public key parameters.
-
Constructor Details
-
AsymmetricCipherKeyPair
public AsymmetricCipherKeyPair(AsymmetricKeyParameter publicParam, AsymmetricKeyParameter privateParam) basic constructor.- Parameters:
publicParam
- a public key parameters object.privateParam
- the corresponding private key parameters.
-
AsymmetricCipherKeyPair
Deprecated.use AsymmetricKeyParameterbasic constructor.- Parameters:
publicParam
- a public key parameters object.privateParam
- the corresponding private key parameters.
-
-
Method Details
-
getPublic
return the public key parameters.- Returns:
- the public key parameters.
-
getPrivate
return the private key parameters.- Returns:
- the private key parameters.
-