public class KeyHolder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.security.MessageDigest |
MESSAGE_DIGEST_SHA_256 |
protected byte[] |
mPrivateKey |
protected byte[] |
mPublicKeyDiffieHellman |
protected byte[] |
mPublicKeySignature |
| Constructor and Description |
|---|
KeyHolder(byte[] privateKey) |
KeyHolder(byte[] publicKeyDiffieHellman,
byte[] publicKeySignature) |
KeyHolder(byte[] privateKey,
byte[] publicKeyDiffieHellman,
byte[] publicKeySignature) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
computePublicSignatureKey(byte[] privateKey) |
static byte[] |
createPrivateKey(byte[] seed) |
byte[] |
getPrivateKey() |
byte[] |
getPublicKeyDiffieHellman() |
byte[] |
getPublicKeySignature() |
protected static final java.security.MessageDigest MESSAGE_DIGEST_SHA_256
protected final byte[] mPrivateKey
protected final byte[] mPublicKeyDiffieHellman
protected final byte[] mPublicKeySignature
public KeyHolder(byte[] privateKey)
public KeyHolder(byte[] publicKeyDiffieHellman,
byte[] publicKeySignature)
public KeyHolder(byte[] privateKey,
byte[] publicKeyDiffieHellman,
byte[] publicKeySignature)
public static byte[] createPrivateKey(byte[] seed)
protected byte[] computePublicSignatureKey(byte[] privateKey)
public byte[] getPrivateKey()
public byte[] getPublicKeyDiffieHellman()
public byte[] getPublicKeySignature()