Enum AgileEncryptionConfig.Hash
- java.lang.Object
-
- java.lang.Enum<AgileEncryptionConfig.Hash>
-
- com.healthmarketscience.jackcess.crypt.AgileEncryptionConfig.Hash
-
- All Implemented Interfaces:
Serializable,Comparable<AgileEncryptionConfig.Hash>
- Enclosing class:
- AgileEncryptionConfig
public static enum AgileEncryptionConfig.Hash extends Enum<AgileEncryptionConfig.Hash>
The hashes which can be written, with the length each produces.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSize()Returns the hash length, which the descriptor also carries.StringgetXmlName()static AgileEncryptionConfig.HashvalueOf(String name)Returns the enum constant of this type with the specified name.static AgileEncryptionConfig.Hash[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHA1
public static final AgileEncryptionConfig.Hash SHA1
-
SHA256
public static final AgileEncryptionConfig.Hash SHA256
-
SHA384
public static final AgileEncryptionConfig.Hash SHA384
-
SHA512
public static final AgileEncryptionConfig.Hash SHA512
-
-
Method Detail
-
values
public static AgileEncryptionConfig.Hash[] 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 (AgileEncryptionConfig.Hash c : AgileEncryptionConfig.Hash.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgileEncryptionConfig.Hash 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
-
getXmlName
public String getXmlName()
-
getSize
public int getSize()
Returns the hash length, which the descriptor also carries.
-
-