Package com.oracle.bmc.encryption
Class OciCryptoInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.oracle.bmc.encryption.OciCryptoInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
DecryptionStream
,EncryptionStream
public abstract class OciCryptoInputStream extends InputStream
OciCryptoInputStream holds the encrypted/decrypted stream.
-
-
Field Summary
Fields Modifier and Type Field Description protected EncryptionHeader
header
-
Constructor Summary
Constructors Constructor Description OciCryptoInputStream(EncryptionHeader header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getContext()
Get the encryption Context.int
read()
Reads a byte from the stream-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Field Detail
-
header
protected final EncryptionHeader header
-
-
Constructor Detail
-
OciCryptoInputStream
public OciCryptoInputStream(EncryptionHeader header)
-
-
Method Detail
-
getContext
public Map<String,String> getContext()
Get the encryption Context.It can be used to verify the Additional Authenticated Data.
- Returns:
- Map of strings
-
read
public int read() throws IOException
Reads a byte from the stream- Specified by:
read
in classInputStream
- Returns:
- The byte read
- Throws:
IOException
-
-