Interface Digest

  • All Superinterfaces:
    AlgorithmNameProvider, java.lang.Comparable<Digest>, DigestInformation
    All Known Implementing Classes:
    BaseDigest

    public interface Digest
    extends DigestInformation, java.lang.Comparable<Digest>
    Interface used to compute digests, based on algorithms such as MD5 or SHA1. The digest implementation are compared first by the algorithm name (case insensitive and second according to the block size
    • Method Detail

      • init

        void init()
           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • update

        void update​(byte[] data)
             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • update

        void update​(byte[] data,
                    int start,
                    int len)
             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • digest

        byte[] digest()
               throws java.lang.Exception
        Throws:
        java.lang.Exception