public class VirgilKeyPair extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
VirgilKeyPair.Type |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
swigCMemOwn |
| Modifier | Constructor and Description |
|---|---|
|
VirgilKeyPair() |
|
VirgilKeyPair(byte[] pwd) |
|
VirgilKeyPair(byte[] publicKey,
byte[] privateKey) |
protected |
VirgilKeyPair(long cPtr,
boolean cMemoryOwn) |
|
VirgilKeyPair(VirgilKeyPair other) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkPrivateKeyPassword(byte[] key,
byte[] pwd) |
void |
close() |
void |
delete() |
static VirgilKeyPair |
ecBrainpool256() |
static VirgilKeyPair |
ecBrainpool256(byte[] pwd) |
static VirgilKeyPair |
ecBrainpool384() |
static VirgilKeyPair |
ecBrainpool384(byte[] pwd) |
static VirgilKeyPair |
ecBrainpool512() |
static VirgilKeyPair |
ecBrainpool512(byte[] pwd) |
static VirgilKeyPair |
ecKoblitz192() |
static VirgilKeyPair |
ecKoblitz192(byte[] pwd) |
static VirgilKeyPair |
ecKoblitz224() |
static VirgilKeyPair |
ecKoblitz224(byte[] pwd) |
static VirgilKeyPair |
ecKoblitz256() |
static VirgilKeyPair |
ecKoblitz256(byte[] pwd) |
static VirgilKeyPair |
ecNist192() |
static VirgilKeyPair |
ecNist192(byte[] pwd) |
static VirgilKeyPair |
ecNist224() |
static VirgilKeyPair |
ecNist224(byte[] pwd) |
static VirgilKeyPair |
ecNist256() |
static VirgilKeyPair |
ecNist256(byte[] pwd) |
static VirgilKeyPair |
ecNist384() |
static VirgilKeyPair |
ecNist384(byte[] pwd) |
static VirgilKeyPair |
ecNist521() |
static VirgilKeyPair |
ecNist521(byte[] pwd) |
static byte[] |
extractPublicKey(byte[] privateKey,
byte[] privateKeyPassword) |
protected void |
finalize() |
static VirgilKeyPair |
generate() |
static VirgilKeyPair |
generate(VirgilKeyPair.Type type) |
static VirgilKeyPair |
generate(VirgilKeyPair.Type type,
byte[] pwd) |
static VirgilKeyPair |
generateFrom(VirgilKeyPair donorKeyPair) |
static VirgilKeyPair |
generateFrom(VirgilKeyPair donorKeyPair,
byte[] donorPrivateKeyPassword) |
static VirgilKeyPair |
generateFrom(VirgilKeyPair donorKeyPair,
byte[] donorPrivateKeyPassword,
byte[] newKeyPairPassword) |
protected static long |
getCPtr(VirgilKeyPair obj) |
static boolean |
isKeyPairMatch(byte[] publicKey,
byte[] privateKey) |
static boolean |
isKeyPairMatch(byte[] publicKey,
byte[] privateKey,
byte[] privateKeyPassword) |
static boolean |
isPrivateKeyEncrypted(byte[] privateKey) |
byte[] |
privateKey() |
byte[] |
publicKey() |
static byte[] |
resetPrivateKeyPassword(byte[] privateKey,
byte[] oldPassword,
byte[] newPassword) |
static VirgilKeyPair |
rsa1024() |
static VirgilKeyPair |
rsa1024(byte[] pwd) |
static VirgilKeyPair |
rsa2048() |
static VirgilKeyPair |
rsa2048(byte[] pwd) |
static VirgilKeyPair |
rsa256() |
static VirgilKeyPair |
rsa256(byte[] pwd) |
static VirgilKeyPair |
rsa4096() |
static VirgilKeyPair |
rsa4096(byte[] pwd) |
static VirgilKeyPair |
rsa512() |
static VirgilKeyPair |
rsa512(byte[] pwd) |
protected VirgilKeyPair(long cPtr,
boolean cMemoryOwn)
public VirgilKeyPair(byte[] pwd)
public VirgilKeyPair()
public VirgilKeyPair(byte[] publicKey,
byte[] privateKey)
public VirgilKeyPair(VirgilKeyPair other)
protected static long getCPtr(VirgilKeyPair obj)
public void delete()
public void close()
close in interface AutoCloseablepublic static VirgilKeyPair generate(VirgilKeyPair.Type type, byte[] pwd)
public static VirgilKeyPair generate(VirgilKeyPair.Type type)
public static VirgilKeyPair generate()
public static VirgilKeyPair generateFrom(VirgilKeyPair donorKeyPair, byte[] donorPrivateKeyPassword, byte[] newKeyPairPassword)
public static VirgilKeyPair generateFrom(VirgilKeyPair donorKeyPair, byte[] donorPrivateKeyPassword)
public static VirgilKeyPair generateFrom(VirgilKeyPair donorKeyPair)
public static VirgilKeyPair ecNist192(byte[] pwd)
public static VirgilKeyPair ecNist192()
public static VirgilKeyPair ecNist224(byte[] pwd)
public static VirgilKeyPair ecNist224()
public static VirgilKeyPair ecNist256(byte[] pwd)
public static VirgilKeyPair ecNist256()
public static VirgilKeyPair ecNist384(byte[] pwd)
public static VirgilKeyPair ecNist384()
public static VirgilKeyPair ecNist521(byte[] pwd)
public static VirgilKeyPair ecNist521()
public static VirgilKeyPair ecBrainpool256(byte[] pwd)
public static VirgilKeyPair ecBrainpool256()
public static VirgilKeyPair ecBrainpool384(byte[] pwd)
public static VirgilKeyPair ecBrainpool384()
public static VirgilKeyPair ecBrainpool512(byte[] pwd)
public static VirgilKeyPair ecBrainpool512()
public static VirgilKeyPair ecKoblitz192(byte[] pwd)
public static VirgilKeyPair ecKoblitz192()
public static VirgilKeyPair ecKoblitz224(byte[] pwd)
public static VirgilKeyPair ecKoblitz224()
public static VirgilKeyPair ecKoblitz256(byte[] pwd)
public static VirgilKeyPair ecKoblitz256()
public static VirgilKeyPair rsa256(byte[] pwd)
public static VirgilKeyPair rsa256()
public static VirgilKeyPair rsa512(byte[] pwd)
public static VirgilKeyPair rsa512()
public static VirgilKeyPair rsa1024(byte[] pwd)
public static VirgilKeyPair rsa1024()
public static VirgilKeyPair rsa2048(byte[] pwd)
public static VirgilKeyPair rsa2048()
public static VirgilKeyPair rsa4096(byte[] pwd)
public static VirgilKeyPair rsa4096()
public static boolean isKeyPairMatch(byte[] publicKey,
byte[] privateKey,
byte[] privateKeyPassword)
public static boolean isKeyPairMatch(byte[] publicKey,
byte[] privateKey)
public static boolean checkPrivateKeyPassword(byte[] key,
byte[] pwd)
public static boolean isPrivateKeyEncrypted(byte[] privateKey)
public static byte[] resetPrivateKeyPassword(byte[] privateKey,
byte[] oldPassword,
byte[] newPassword)
public static byte[] extractPublicKey(byte[] privateKey,
byte[] privateKeyPassword)
public byte[] publicKey()
public byte[] privateKey()
Copyright © 2016. All rights reserved.