Package org.bitcoinj.wallet
Enum Protos.Wallet.EncryptionType
- java.lang.Object
-
- java.lang.Enum<Protos.Wallet.EncryptionType>
-
- org.bitcoinj.wallet.Protos.Wallet.EncryptionType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,java.io.Serializable
,java.lang.Comparable<Protos.Wallet.EncryptionType>
- Enclosing class:
- Protos.Wallet
public static enum Protos.Wallet.EncryptionType extends java.lang.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 enumwallet.Wallet.EncryptionType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENCRYPTED_SCRYPT_AES
All keys are encrypted with a passphrase based KDF of scrypt and AES encryptionUNENCRYPTED
All keys in the wallet are unencrypted
-
Field Summary
Fields Modifier and Type Field Description static int
ENCRYPTED_SCRYPT_AES_VALUE
All keys are encrypted with a passphrase based KDF of scrypt and AES encryptionstatic int
UNENCRYPTED_VALUE
All keys in the wallet are unencrypted
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Protos.Wallet.EncryptionType
forNumber(int value)
int
getNumber()
static com.google.protobuf.Internal.EnumLiteMap<Protos.Wallet.EncryptionType>
internalGetValueMap()
static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier()
static Protos.Wallet.EncryptionType
valueOf(int value)
Deprecated.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.
-
-
-
Enum Constant Detail
-
UNENCRYPTED
public static final Protos.Wallet.EncryptionType UNENCRYPTED
All keys in the wallet are unencrypted
UNENCRYPTED = 1;
-
ENCRYPTED_SCRYPT_AES
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;
-
-
Field Detail
-
UNENCRYPTED_VALUE
public static final int UNENCRYPTED_VALUE
All keys in the wallet are unencrypted
UNENCRYPTED = 1;
- See Also:
- Constant Field Values
-
ENCRYPTED_SCRYPT_AES_VALUE
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;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Protos.Wallet.EncryptionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Protos.Wallet.EncryptionType c : Protos.Wallet.EncryptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Protos.Wallet.EncryptionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
@Deprecated public static Protos.Wallet.EncryptionType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forNumber
public static Protos.Wallet.EncryptionType forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Wallet.EncryptionType> internalGetValueMap()
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-
-