Enum 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 enum wallet.Wallet.EncryptionType
    • Enum Constant Detail

      • 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 name
        java.lang.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 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 name
        java.lang.NullPointerException - if the argument is null
      • internalGetVerifier

        public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()