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
- IANA Named Information Hash Algorithm Registry
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HashAlgorithmSHA-256.static final HashAlgorithmSHA-384.static final HashAlgorithmSHA-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:
equalsin classIdentifier
-