Package net.corda.v5.crypto
Interface SecureHash
-
- All Implemented Interfaces:
@DoNotImplement() public interface SecureHash
A cryptographically secure hash value, computed by a specified digest algorithm (DigestAlgorithmName). A SecureHash can be computed and acquired through the net.corda.v5.application.crypto.DigestService.
-
-
Method Summary
Modifier and Type Method Description abstract String
getAlgorithm()
Hashing algorithm which was used to generate the hash. abstract String
toHexString()
Returns hexadecimal representation of the hash value. abstract String
toString()
Converts a SecureHash object to a string representation containing the algorithm
and hexadecimal representation of thebytes
separated by the colon character (net.corda.v5.crypto.SecureHash.-
-
Method Detail
-
getAlgorithm
@NotNull() abstract String getAlgorithm()
Hashing algorithm which was used to generate the hash.
-
toHexString
@NotNull() abstract String toHexString()
Returns hexadecimal representation of the hash value.
-
toString
@NotNull() abstract String toString()
Converts a SecureHash object to a string representation containing the
algorithm
and hexadecimal representation of thebytes
separated by the colon character (net.corda.v5.crypto.SecureHash.DELIMITER).Example outcome of toString(): SHA-256:98AF8725385586B41FEFF205B4E05A000823F78B5F8F5C02439CE8F67A781D90
-
-
-
-