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 void
close()
Authenticated ciphers call doFinal upon the last read, there is no need to do so upon close.protected int
endOfFileReached()
-
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 IOException
Authenticated ciphers call doFinal upon the last read, there is no need to do so upon close.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classCipherInputStream
- Throws:
IOException
- from the wrapped InputStream
-
endOfFileReached
protected int endOfFileReached()
- Overrides:
endOfFileReached
in classCipherInputStream
-
-