Package org.bouncycastle.jcajce
Class ConsistentKeyPair
- java.lang.Object
-
- org.bouncycastle.jcajce.ConsistentKeyPair
-
public class ConsistentKeyPair extends java.lang.Object
Carrier class for a key pair which validates the consistency of the keys at construction time.
-
-
Constructor Summary
Constructors Constructor Description ConsistentKeyPair(java.security.PublicKey publicKey, java.security.PrivateKey privateKey)
Create a public/private key pair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.PrivateKey
getPrivate()
Return the private key component.java.security.PublicKey
getPublic()
Return the public key component.
-
-
-
Constructor Detail
-
ConsistentKeyPair
public ConsistentKeyPair(java.security.PublicKey publicKey, java.security.PrivateKey privateKey)
Create a public/private key pair.- Parameters:
publicKey
- the public key component.privateKey
- the private key component.- Throws:
java.lang.IllegalArgumentException
- if the public and private key arguments are inconsistent.
-
-