Class Checksum

  • All Implemented Interfaces:
    java.io.Serializable

    public class Checksum
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Checksum.Kind
      Kinds of checksum
    • Constructor Summary

      Constructors 
      Constructor Description
      Checksum​(byte[] digest, Checksum.Kind kind)
      Constructor to be called from the native code
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getDigest()
      Retrieve the digest
      Checksum.Kind getKind()
      Retrieve the kind
      • Methods inherited from class java.lang.Object

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

      • Checksum

        public Checksum​(byte[] digest,
                        Checksum.Kind kind)
        Constructor to be called from the native code
        Parameters:
        digest - bytes of the digest
        kind - kind of checksum
    • Method Detail

      • getDigest

        public byte[] getDigest()
        Retrieve the digest
        Returns:
        the digest
      • getKind

        public Checksum.Kind getKind()
        Retrieve the kind
        Returns:
        the kind