Package org.bitcoinj.wallet
Enum Class Protos.Wallet.EncryptionType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,Serializable
,Comparable<Protos.Wallet.EncryptionType>
,Constable
- Enclosing class:
- Protos.Wallet
public static enum Protos.Wallet.EncryptionType
extends Enum<Protos.Wallet.EncryptionType>
implements com.google.protobuf.Internal.EnumLite
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAll keys are encrypted with a passphrase based KDF of scrypt and AES encryptionAll keys in the wallet are unencrypted -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
All keys are encrypted with a passphrase based KDF of scrypt and AES encryptionstatic final int
All keys in the wallet are unencrypted -
Method Summary
Modifier and TypeMethodDescriptionstatic Protos.Wallet.EncryptionType
forNumber
(int value) final int
static com.google.protobuf.Internal.EnumLiteMap<Protos.Wallet.EncryptionType>
static com.google.protobuf.Internal.EnumVerifier
static Protos.Wallet.EncryptionType
valueOf
(int value) Deprecated.static Protos.Wallet.EncryptionType
Returns the enum constant of this class with the specified name.static Protos.Wallet.EncryptionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNENCRYPTED
All keys in the wallet are unencrypted
UNENCRYPTED = 1;
-
ENCRYPTED_SCRYPT_AES
All keys are encrypted with a passphrase based KDF of scrypt and AES encryption
ENCRYPTED_SCRYPT_AES = 2;
-
-
Field Details
-
UNENCRYPTED_VALUE
public static final int UNENCRYPTED_VALUEAll keys in the wallet are unencrypted
UNENCRYPTED = 1;
- See Also:
-
ENCRYPTED_SCRYPT_AES_VALUE
public static final int ENCRYPTED_SCRYPT_AES_VALUEAll keys are encrypted with a passphrase based KDF of scrypt and AES encryption
ENCRYPTED_SCRYPT_AES = 2;
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Wallet.EncryptionType> internalGetValueMap() -
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-