Package com.microsoft.credentialstorage
Enum StorageProvider.SecureOption
- java.lang.Object
-
- java.lang.Enum<StorageProvider.SecureOption>
-
- com.microsoft.credentialstorage.StorageProvider.SecureOption
-
- All Implemented Interfaces:
Serializable,Comparable<StorageProvider.SecureOption>
- Enclosing class:
- StorageProvider
public static enum StorageProvider.SecureOption extends Enum<StorageProvider.SecureOption>
Option for requesting a store defining whether it is required to be secure or not.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StorageProvider.SecureOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static StorageProvider.SecureOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
-