Package de.xima.fc.persistence.system
Enum DataSourceEncryptionState.State
- java.lang.Object
-
- java.lang.Enum<DataSourceEncryptionState.State>
-
- de.xima.fc.persistence.system.DataSourceEncryptionState.State
-
- All Implemented Interfaces:
Serializable,Comparable<DataSourceEncryptionState.State>
- Enclosing class:
- DataSourceEncryptionState
public static enum DataSourceEncryptionState.State extends Enum<DataSourceEncryptionState.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENCRYPTION_INVALIDEncryption of the database is invalid, meaning the provided encryption settings are incorrect and data cannot be decrypted.ENCRYPTION_NOT_SETUPThe database is not (yet) set up for encryption, meaning encryption test value is not found.ENCRYPTION_VALIDEncryption of the database is valid, meaning the provided encryption settings are correct and data can be decrypted successfully.UNKNOWN_ERRORAn error occurred during the encryption check, such as a database access issue.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid()static DataSourceEncryptionState.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static DataSourceEncryptionState.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENCRYPTION_VALID
public static final DataSourceEncryptionState.State ENCRYPTION_VALID
Encryption of the database is valid, meaning the provided encryption settings are correct and data can be decrypted successfully.
-
ENCRYPTION_INVALID
public static final DataSourceEncryptionState.State ENCRYPTION_INVALID
Encryption of the database is invalid, meaning the provided encryption settings are incorrect and data cannot be decrypted.
-
ENCRYPTION_NOT_SETUP
public static final DataSourceEncryptionState.State ENCRYPTION_NOT_SETUP
The database is not (yet) set up for encryption, meaning encryption test value is not found.
-
UNKNOWN_ERROR
public static final DataSourceEncryptionState.State UNKNOWN_ERROR
An error occurred during the encryption check, such as a database access issue.
-
-
Method Detail
-
values
public static DataSourceEncryptionState.State[] 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 (DataSourceEncryptionState.State c : DataSourceEncryptionState.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataSourceEncryptionState.State 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
-
isValid
public boolean isValid()
-
-