public class KeyPair extends Object
| Constructor and Description |
|---|
KeyPair()
Create a new instance of
KeyPair |
KeyPair(PublicKey publicKey,
PrivateKey privateKey)
Create a new instance of
KeyPair |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
getPrivateKey() |
PublicKey |
getPublicKey() |
void |
setPrivateKey(PrivateKey privateKey) |
void |
setPublicKey(PublicKey publicKey) |
public KeyPair()
KeyPairpublic KeyPair(PublicKey publicKey, PrivateKey privateKey)
KeyPairpublicKey - the public key.privateKey - the private key.public PublicKey getPublicKey()
public void setPublicKey(PublicKey publicKey)
publicKey - the public key to setpublic PrivateKey getPrivateKey()
public void setPrivateKey(PrivateKey privateKey)
privateKey - the privateKey to setCopyright © 2016. All rights reserved.