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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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 the bytes separated by the colon character (net.corda.v5.crypto.SecureHash.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 the bytes separated by the colon character (net.corda.v5.crypto.SecureHash.DELIMITER).

        Example outcome of toString(): SHA-256:98AF8725385586B41FEFF205B4E05A000823F78B5F8F5C02439CE8F67A781D90