public class KeyPair extends Object implements Serializable
PublicKey,
PrivateKey,
Serialized Form| Constructor and Description |
|---|
KeyPair(PublicKey publicKey,
PrivateKey privateKey)
Constructs a key pair from the given public key and private key.
|
KeyPair(VirgilKeyPair keyPair)
Constructs a key pair from the given VirginKeyPair.
|
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
getPrivate()
Returns a reference to the private key component of this key pair.
|
PublicKey |
getPublic()
Returns a reference to the public key component of this key pair.
|
public KeyPair(PublicKey publicKey, PrivateKey privateKey)
publicKey - the public key.privateKey - the private key.public KeyPair(VirgilKeyPair keyPair)
keyPair - the Virgin key pair.public PublicKey getPublic()
public PrivateKey getPrivate()
Copyright © 2016. All rights reserved.