public final class KeyPair extends Object implements Serializable
| Constructor and Description |
|---|
KeyPair(PublicKey publicKey,
PrivateKey privateKey)
Initializes the KeyPair with a pubilc and private key.
|
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
getPrivate()
Returns the private key stored in the KeyPair
|
PublicKey |
getPublic()
Returns the public key stored in the KeyPair
|
public KeyPair(PublicKey publicKey, PrivateKey privateKey)
publicKey - Public Key to storeprivateKey - Private Key to storepublic PublicKey getPublic()
public PrivateKey getPrivate()