Module de.carne
Package de.carne.io

Class SHA256Checksum

    • Method Detail

      • getInstance

        public static SHA256Checksum getInstance()
                                          throws java.security.NoSuchAlgorithmException
        Gets a SHA256Checksum instance for checksum generation.
        Returns:
        a SHA256Checksum instance for checksum generation.
        Throws:
        java.security.NoSuchAlgorithmException - if the necessary algorithm is not available on the running platform.
      • getInstance

        public static SHA256Checksum getInstance​(java.lang.String provider)
                                          throws java.security.NoSuchProviderException,
                                                 java.security.NoSuchAlgorithmException
        Gets a SHA256Checksum instance for checksum generation.
        Parameters:
        provider - the security provider to use.
        Returns:
        a SHA256Checksum instance for checksum generation.
        Throws:
        java.security.NoSuchProviderException - if the requested provider is not available on the running platform.
        java.security.NoSuchAlgorithmException - if the necessary algorithm is not available on the running platform.