corda / net.corda.core.crypto / SecureHash / parse

parse

@JvmStatic fun parse(str: String?): SHA256

Converts a SHA-256 hash value represented as a hexadecimal String into a SecureHash.

Parameters

str - A sequence of 64 hexadecimal digits that represents a SHA-256 hash value.

Exceptions

IllegalArgumentException - The input string does not contain 64 hexadecimal digits, or it contains incorrectly-encoded characters.