Package org.apache.poi.poifs.crypt
Enum Class HashAlgorithm
- All Implemented Interfaces:
Serializable
,Comparable<HashAlgorithm>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
the id used for the BIFF encryption info headerfinal String
the id used for OOXML encryption info headerfinal int
the length of the digest byte arrayfinal String
the id used for the integrity algorithm in agile encryptionfinal String
the id used for initializing the JCE message digestfinal boolean
is bouncycastle necessary for calculating the digestfinal String
ASN1 object identifier of the digest value in combination with the RSA cipher -
Method Summary
Modifier and TypeMethodDescriptionstatic HashAlgorithm
fromEcmaId
(int ecmaId) static HashAlgorithm
fromEcmaId
(String ecmaString) static HashAlgorithm
fromString
(String string) static HashAlgorithm
Returns the enum constant of this class with the specified name.static HashAlgorithm[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
none
-
sha1
-
sha256
-
sha384
-
sha512
-
md5
-
md2
-
md4
-
ripemd128
-
ripemd160
-
whirlpool
-
sha224
-
ripemd256
-
-
Field Details
-
jceId
the id used for initializing the JCE message digest -
ecmaId
public final int ecmaIdthe id used for the BIFF encryption info header -
ecmaString
the id used for OOXML encryption info header -
hashSize
public final int hashSizethe length of the digest byte array -
jceHmacId
the id used for the integrity algorithm in agile encryption -
needsBouncyCastle
public final boolean needsBouncyCastleis bouncycastle necessary for calculating the digest -
rsaOid
ASN1 object identifier of the digest value in combination with the RSA cipher
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromEcmaId
-
fromEcmaId
-
fromString
-