public class ConsistentKeyPair
extends java.lang.Object
Constructor and Description |
---|
ConsistentKeyPair(java.security.PublicKey publicKey,
java.security.PrivateKey privateKey)
Create a public/private key pair.
|
Modifier and Type | Method and Description |
---|---|
java.security.PrivateKey |
getPrivate()
Return the private key component.
|
java.security.PublicKey |
getPublic()
Return the public key component.
|
public ConsistentKeyPair(java.security.PublicKey publicKey, java.security.PrivateKey privateKey)
publicKey
- the public key component.privateKey
- the private key component.java.lang.IllegalArgumentException
- if the public and private key arguments are inconsistent.