Package net.corda.v5.crypto
Class DigestAlgorithmName
-
- All Implemented Interfaces:
public final class DigestAlgorithmName
The digest algorithm name. This class is to be used in Corda hashing API.
-
-
Field Summary
Fields Modifier and Type Field Description public final String
name
public final static DigestAlgorithmName
SHA2_256
public final static DigestAlgorithmName
SHA2_256D
public final static DigestAlgorithmName
SHA2_384
public final static DigestAlgorithmName
SHA2_512
-
Constructor Summary
Constructors Constructor Description DigestAlgorithmName(String name)
Construct a digest algorithm name.
-
Method Summary
Modifier and Type Method Description String
getName()
String
toString()
Converts a DigestAlgorithmName object to a string representation. int
hashCode()
Returns a hash code value for the object. boolean
equals(@Nullable() Object other)
Check if two specified instances of the DigestAlgorithmName are the same based on their content. -
-
Constructor Detail
-
DigestAlgorithmName
DigestAlgorithmName(String name)
Construct a digest algorithm name.- Parameters:
name
- The name of the digest algorithm to be used for the instance.
-
-
Method Detail
-
toString
@NotNull() String toString()
Converts a DigestAlgorithmName object to a string representation.
-
hashCode
int hashCode()
Returns a hash code value for the object.
-
equals
boolean equals(@Nullable() Object other)
Check if two specified instances of the DigestAlgorithmName are the same based on their content.
-
-
-
-