Enum Class 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, 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
  • Enum Constant Details

    • 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 Details

    • UNENCRYPTED_VALUE

      public static final int UNENCRYPTED_VALUE
       All keys in the wallet are unencrypted
       
      UNENCRYPTED = 1;
      See Also:
    • 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:
  • Method Details

    • values

      public static Protos.Wallet.EncryptionType[] 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

      public static Protos.Wallet.EncryptionType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
    • valueOf

      @Deprecated public static Protos.Wallet.EncryptionType valueOf(int value)
      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 name
      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()