Class AuthenticatedCipherInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- software.amazon.awssdk.core.io.SdkFilterInputStream
-
- software.amazon.encryption.s3.internal.CipherInputStream
-
- software.amazon.encryption.s3.internal.AuthenticatedCipherInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable,software.amazon.awssdk.core.internal.io.Releasable
public class AuthenticatedCipherInputStream extends CipherInputStream
-
-
Field Summary
-
Fields inherited from class software.amazon.encryption.s3.internal.CipherInputStream
cipher, currentPosition, eofReached, inputBuffer, maxPosition, outputBuffer
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedCipherInputStream(InputStream inputStream, Cipher cipher)AuthenticatedCipherInputStream(InputStream inputStream, Cipher cipher, boolean multipart, boolean lastMultipart)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Authenticated ciphers call doFinal upon the last read, there is no need to do so upon close.protected intendOfFileReached()-
Methods inherited from class software.amazon.encryption.s3.internal.CipherInputStream
available, mark, markSupported, nextChunk, read, read, read, reset, skip
-
-
-
-
Constructor Detail
-
AuthenticatedCipherInputStream
public AuthenticatedCipherInputStream(InputStream inputStream, Cipher cipher)
-
AuthenticatedCipherInputStream
public AuthenticatedCipherInputStream(InputStream inputStream, Cipher cipher, boolean multipart, boolean lastMultipart)
-
-
Method Detail
-
close
public void close() throws IOExceptionAuthenticated ciphers call doFinal upon the last read, there is no need to do so upon close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classCipherInputStream- Throws:
IOException- from the wrapped InputStream
-
endOfFileReached
protected int endOfFileReached()
- Overrides:
endOfFileReachedin classCipherInputStream
-
-