- java.lang.Object
-
- de.carne.io.MessageDigestChecksum
-
- de.carne.io.SHA256Checksum
-
- All Implemented Interfaces:
Checksum
public class SHA256Checksum extends MessageDigestChecksum
SHA-256 based checksum generator.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SHA256ChecksumgetInstance()Gets a SHA256Checksum instance for checksum generation.static SHA256ChecksumgetInstance(java.lang.String provider)Gets a SHA256Checksum instance for checksum generation.
-
-
-
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.
-
-