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 SummaryFields Modifier and Type Field Description protected EncryptionHeaderheader
 - 
Constructor SummaryConstructors Constructor Description OciCryptoInputStream(EncryptionHeader header)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getContext()Get the encryption Context.intread()Reads a byte from the stream- 
Methods inherited from class java.io.InputStreamavailable, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
 
- 
 
- 
- 
- 
Field Detail- 
headerprotected final EncryptionHeader header 
 
- 
 - 
Constructor Detail- 
OciCryptoInputStreampublic OciCryptoInputStream(EncryptionHeader header) 
 
- 
 - 
Method Detail- 
getContextpublic Map<String,String> getContext() Get the encryption Context.It can be used to verify the Additional Authenticated Data. - Returns:
- Map of strings
 
 - 
readpublic int read() throws IOExceptionReads a byte from the stream- Specified by:
- readin class- InputStream
- Returns:
- The byte read
- Throws:
- IOException
 
 
- 
 
-