Class Hash

  • All Implemented Interfaces:

    
    public final class Hash
    
                        

    A class that bundles a hash algorithm with its hash value.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Hash.Companion
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getValue() The value calculated using the hash algorithm.
      final HashAlgorithm getAlgorithm() The algorithm used to calculate the hash value.
      final String toSri() Return the hash in Support Subresource Integrity (SRI) format.
      final Boolean verify(File file) Verify that the file matches this hash.
      final Boolean verify(Hash hash) Verify that the provided hash matches this hash.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait