public static enum Protos.Wallet.EncryptionType extends java.lang.Enum<Protos.Wallet.EncryptionType> implements com.google.protobuf.ProtocolMessageEnum
The encryption type of the wallet. The encryption type is UNENCRYPTED for wallets where the wallet does not support encryption - wallets prior to encryption support are grandfathered in as this wallet type. When a wallet is ENCRYPTED_SCRYPT_AES the keys are either encrypted with the wallet password or are unencrypted.Protobuf enum
wallet.Wallet.EncryptionType
Enum Constant and Description |
---|
ENCRYPTED_SCRYPT_AES
All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
|
UNENCRYPTED
All keys in the wallet are unencrypted
|
Modifier and Type | Field and Description |
---|---|
static int |
ENCRYPTED_SCRYPT_AES_VALUE
All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
|
static int |
UNENCRYPTED_VALUE
All keys in the wallet are unencrypted
|
Modifier and Type | Method and Description |
---|---|
static Protos.Wallet.EncryptionType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Protos.Wallet.EncryptionType> |
internalGetValueMap() |
static Protos.Wallet.EncryptionType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protos.Wallet.EncryptionType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Protos.Wallet.EncryptionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Protos.Wallet.EncryptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protos.Wallet.EncryptionType UNENCRYPTED
All keys in the wallet are unencrypted
UNENCRYPTED = 1;
public static final Protos.Wallet.EncryptionType ENCRYPTED_SCRYPT_AES
All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
ENCRYPTED_SCRYPT_AES = 2;
public static final int UNENCRYPTED_VALUE
All keys in the wallet are unencrypted
UNENCRYPTED = 1;
public static final int ENCRYPTED_SCRYPT_AES_VALUE
All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
ENCRYPTED_SCRYPT_AES = 2;
public static Protos.Wallet.EncryptionType[] values()
for (Protos.Wallet.EncryptionType c : Protos.Wallet.EncryptionType.values()) System.out.println(c);
public static Protos.Wallet.EncryptionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Protos.Wallet.EncryptionType valueOf(int value)
forNumber(int)
instead.public static Protos.Wallet.EncryptionType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Wallet.EncryptionType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Protos.Wallet.EncryptionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)