Enum StorageProvider.SecureOption

    • Enum Constant Detail

      • REQUIRED

        public static final StorageProvider.SecureOption REQUIRED
        The store must be secure, i.e. generally the storage needs to be password protected and data potentially is encrypted However, this program makes no assertion on *how* secure the storage really is. It's only an attribute on the storage
      • PREFERRED

        public static final StorageProvider.SecureOption PREFERRED
        Prefer a secure storage, but if none is available, an unprotected, non-secure storage will be returned
    • Method Detail

      • values

        public static StorageProvider.SecureOption[] 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 (StorageProvider.SecureOption c : StorageProvider.SecureOption.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StorageProvider.SecureOption valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null