public static enum Protos.Wallet.EncryptionType extends Enum<Protos.Wallet.EncryptionType> implements com.google.protobuf.ProtocolMessageEnum
wallet.Wallet.EncryptionType
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.
Enum Constant and Description |
---|
ENCRYPTED_SCRYPT_AES
ENCRYPTED_SCRYPT_AES = 2; |
UNENCRYPTED
UNENCRYPTED = 1; |
Modifier and Type | Field and Description |
---|---|
static int |
ENCRYPTED_SCRYPT_AES_VALUE
ENCRYPTED_SCRYPT_AES = 2; |
static int |
UNENCRYPTED_VALUE
UNENCRYPTED = 1; |
Modifier and Type | Method and Description |
---|---|
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) |
static Protos.Wallet.EncryptionType |
valueOf(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
UNENCRYPTED = 1;
All keys in the wallet are unencrypted
public static final Protos.Wallet.EncryptionType ENCRYPTED_SCRYPT_AES
ENCRYPTED_SCRYPT_AES = 2;
All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
public static final int UNENCRYPTED_VALUE
UNENCRYPTED = 1;
All keys in the wallet are unencrypted
public static final int ENCRYPTED_SCRYPT_AES_VALUE
ENCRYPTED_SCRYPT_AES = 2;
All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static Protos.Wallet.EncryptionType valueOf(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)
Copyright © 2016. All rights reserved.