Class Sha1Checksum
java.lang.Object
software.amazon.awssdk.http.auth.aws.internal.signer.checksums.Sha1Checksum
- All Implemented Interfaces:
Checksum
,SdkChecksum
Implementation of
SdkChecksum
to calculate an Sha-1 checksum.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the computed checksum in a byte array rather than the long provided byChecksum.getValue()
.long
getValue()
void
mark
(int readLimit) Allows marking a checksum for checksums that support the ability to mark and reset.void
reset()
void
update
(byte[] b, int off, int len) void
update
(int b) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.http.auth.aws.internal.signer.checksums.SdkChecksum
update, update
-
Constructor Details
-
Sha1Checksum
public Sha1Checksum()
-
-
Method Details
-
update
public void update(int b) -
update
public void update(byte[] b, int off, int len) -
getValue
public long getValue() -
reset
public void reset() -
getChecksumBytes
public byte[] getChecksumBytes()Description copied from interface:SdkChecksum
Returns the computed checksum in a byte array rather than the long provided byChecksum.getValue()
.- Specified by:
getChecksumBytes
in interfaceSdkChecksum
- Returns:
- byte[] containing the checksum
-
mark
public void mark(int readLimit) Description copied from interface:SdkChecksum
Allows marking a checksum for checksums that support the ability to mark and reset.- Specified by:
mark
in interfaceSdkChecksum
- Parameters:
readLimit
- the maximum limit of bytes that can be read before the mark position becomes invalid.
-