public class KeyStore
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
KeyStore.CipherParams
Represents a Cipher option to encrypt or decrypt key
|
static class |
KeyStore.Crypto
Represent a Crypto data in KeyStore
It represents a 'keyring' in KeyStore Format V4
- If role-based Keyring : It has a List that has Crypto list.
|
static class |
KeyStore.Pbkdf2KdfParams
Represent a PBKDF2 parameter Class used in Key derivation
|
static class |
KeyStore.ScryptKdfParams
Represent a Scrypt parameter Class used in Key derivation
|
Modifier and Type | Field and Description |
---|---|
static int |
KEY_STORE_VERSION_V3
Keystore Format V4 version
|
static int |
KEY_STORE_VERSION_V4
Keystore Format V3 version
|
Constructor and Description |
---|
KeyStore()
Creates a KeyStore instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Getter function of address.
|
KeyStore.Crypto |
getCrypto()
Getter function of crypto.
|
java.lang.String |
getId()
Getter function for id.
|
java.util.List |
getKeyring()
Getter function of keyRing.
|
int |
getVersion()
Getter function for version.
|
void |
setAddress(java.lang.String address)
Setter function of address.
|
void |
setCrypto(KeyStore.Crypto crypto)
Setter function of crypto.
|
void |
setCryptoV1(KeyStore.Crypto crypto)
Setter function of Crypto.
|
void |
setId(java.lang.String id)
Setter function for id.
|
void |
setKeyring(java.util.List keyRing)
Setter function of keyRing.
|
void |
setVersion(int version)
Setter function for version
|
public static final int KEY_STORE_VERSION_V3
public static final int KEY_STORE_VERSION_V4
public void setKeyring(java.util.List keyRing)
keyRing
- public java.util.List getKeyring()
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- An addresspublic KeyStore.Crypto getCrypto()
public void setCrypto(KeyStore.Crypto crypto)
crypto
- KeyStore.Crypto.public void setCryptoV1(KeyStore.Crypto crypto)
crypto
- KeyStore.Cryptopublic java.lang.String getId()
public void setId(java.lang.String id)
id
- An id in KeyStorepublic int getVersion()
public void setVersion(int version)
version
- version in KeyStore