public class KeyPair
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static KeyPair |
createKeyPair(byte[] privateKey,
byte[] publicKey)
Creates a
KeyPair from two byte arrays, representing privateKey
and publicKey . |
PrivateKey |
getPrivateKey()
Returns a private key of this pair.
|
PublicKey |
getPublicKey()
Returns a public key of this pair.
|
public static KeyPair createKeyPair(byte[] privateKey, byte[] publicKey)
KeyPair
from two byte arrays, representing privateKey
and publicKey
. All arrays are defensively copied.public PublicKey getPublicKey()
public PrivateKey getPrivateKey()
Copyright © 2018 Exonum. All rights reserved.