Class HashAlgorithm
java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.openid.connect.sdk.assurance.evidences.attachment.HashAlgorithm
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
Hash algorithm.
Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.2.2.
- IANA Named Information Hash Algorithm Registry
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HashAlgorithm
SHA-256.static final HashAlgorithm
SHA-384.static final HashAlgorithm
SHA-512.Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
Constructor Summary
ConstructorsConstructorDescriptionHashAlgorithm
(String name) Creates a new hash algorithm with the specified name, normalised to lowercase. -
Method Summary
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
Field Details
-
SHA_256
SHA-256. -
SHA_384
SHA-384. -
SHA_512
SHA-512.
-
-
Constructor Details
-
HashAlgorithm
Creates a new hash algorithm with the specified name, normalised to lowercase.- Parameters:
name
- The name. Must not benull
.
-
-
Method Details
-
equals
- Overrides:
equals
in classIdentifier
-