Package org.webpki.crypto
Enum Class HashAlgorithms
- All Implemented Interfaces:
- Serializable,- Comparable<HashAlgorithms>,- Constable,- CryptoAlgorithms
Hash algorithms including an implementation.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]digest(byte[] data) static HashAlgorithmsgetAlgorithmFromId(String algorithmId, AlgorithmPreferences algorithmPreferences) static HashAlgorithmsgetAlgorithmId(AlgorithmPreferences algorithmPreferences) intgetOid()intbooleanbooleanbooleanstatic HashAlgorithmsReturns the enum constant of this class with the specified name.static HashAlgorithms[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enumclone, compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.webpki.crypto.CryptoAlgorithmsgetJoseAlgorithmId
- 
Enum Constant Details- 
SHA1
- 
SHA256
- 
SHA384
- 
SHA512
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getJceName- Specified by:
- getJceNamein interface- CryptoAlgorithms
 
- 
digestpublic byte[] digest(byte[] data) 
- 
getCoseAlgorithmIdpublic int getCoseAlgorithmId()- Specified by:
- getCoseAlgorithmIdin interface- CryptoAlgorithms
 
- 
getAlgorithmFromOid
- 
getAlgorithmFromIdpublic static HashAlgorithms getAlgorithmFromId(String algorithmId, AlgorithmPreferences algorithmPreferences) 
- 
isMandatorySksAlgorithmpublic boolean isMandatorySksAlgorithm()- Specified by:
- isMandatorySksAlgorithmin interface- CryptoAlgorithms
 
- 
getAlgorithmId- Specified by:
- getAlgorithmIdin interface- CryptoAlgorithms
 
- 
getOid- Specified by:
- getOidin interface- CryptoAlgorithms
 
- 
isSymmetricpublic boolean isSymmetric()- Specified by:
- isSymmetricin interface- CryptoAlgorithms
 
- 
isDeprecatedpublic boolean isDeprecated()- Specified by:
- isDeprecatedin interface- CryptoAlgorithms
 
- 
getKeyType- Specified by:
- getKeyTypein interface- CryptoAlgorithms
 
- 
getResultBytespublic int getResultBytes()
 
-