public class KeyPair extends Object
| Modifier and Type | Field and Description |
|---|---|
private PrivateKey |
privateKey |
private PublicKey |
publicKey |
| Constructor and Description |
|---|
KeyPair()
Initialize the key pair with the standard curve name
|
KeyPair(byte[] privateKey,
byte[] publicKey) |
KeyPair(String algorithm,
String curveName) |
KeyPair(String privateKey,
String publicKey,
Encoder encoder) |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
getPrivateKey()
Access to the private key
|
PublicKey |
getPublicKey()
Access to the public key
|
private PublicKey publicKey
private PrivateKey privateKey
public KeyPair(byte[] privateKey,
byte[] publicKey)
public KeyPair()
public PublicKey getPublicKey()
public PrivateKey getPrivateKey()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.