public class DigestValidationInputStream
extends com.amazonaws.internal.SdkDigestInputStream
Constructor and Description |
---|
DigestValidationInputStream(java.io.InputStream in,
java.security.MessageDigest digest,
byte[] serverSideHash)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getMD5Checksum() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
getMessageDigest, on, setMessageDigest, toString
public DigestValidationInputStream(java.io.InputStream in, java.security.MessageDigest digest, byte[] serverSideHash)
in
- input streamdigest
- message digestserverSideHash
- server side hashpublic int read() throws java.io.IOException
read
in class java.security.DigestInputStream
java.io.IOException
InputStream.read()
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.security.DigestInputStream
java.io.IOException
InputStream.read(byte[], int, int)
public byte[] getMD5Checksum()