Package org.bouncycastle.jcajce
Class ConsistentKeyPair
java.lang.Object
org.bouncycastle.jcajce.ConsistentKeyPair
Carrier class for a key pair which validates the consistency of the keys at construction time.
-
Constructor Summary
ConstructorsConstructorDescriptionConsistentKeyPair
(PublicKey publicKey, PrivateKey privateKey) Create a public/private key pair. -
Method Summary
Modifier and TypeMethodDescriptionReturn the private key component.Return the public key component.
-
Constructor Details
-
ConsistentKeyPair
Create a public/private key pair.- Parameters:
publicKey
- the public key component.privateKey
- the private key component.- Throws:
IllegalArgumentException
- if the public and private key arguments are inconsistent.
-
-
Method Details
-
getPublic
Return the public key component.- Returns:
- the public key in the pair.
-
getPrivate
Return the private key component.- Returns:
- the private key in the pair.
-