Package io.minio
Class Checksum.SHA256
java.lang.Object
io.minio.Checksum.SHA256
- All Implemented Interfaces:
Checksum.Hasher
- Enclosing class:
- Checksum
SHA256
Checksum.Hasher.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreset()Resets the hasher for further use.byte[]sum()Completes the hash computation by performing final operations such as padding.static byte[]sum(byte[] b) static byte[]sum(byte[] b, int off, int len) static byte[]toString()voidupdate(byte[] b) voidupdate(byte[] b, int off, int len) Updates len bytes from the specified byte array starting at offset off to this hasher.
-
Constructor Details
-
SHA256
- Throws:
MinioException
-
-
Method Details
-
update
public void update(byte[] b, int off, int len) Description copied from interface:Checksum.HasherUpdates len bytes from the specified byte array starting at offset off to this hasher.- Specified by:
updatein interfaceChecksum.Hasher
-
update
public void update(byte[] b) -
sum
public byte[] sum()Description copied from interface:Checksum.HasherCompletes the hash computation by performing final operations such as padding.- Specified by:
sumin interfaceChecksum.Hasher
-
reset
public void reset()Description copied from interface:Checksum.HasherResets the hasher for further use.- Specified by:
resetin interfaceChecksum.Hasher
-
toString
-
sum
- Throws:
MinioException
-
sum
- Throws:
MinioException
-
sum
- Throws:
MinioException
-