public class SecureModifier.StreamConnector extends java.lang.Object implements IStreamConnector
Constructor and Description |
---|
SecureModifier.StreamConnector(IStreamConnector connector,
AESSymmetricKey encryption,
HMACSymmetricKey signature,
byte[] initializationVector)
Creates a new stream connector that uses the specified connector
to create input and output streams.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream()
Returns an gzip input stream that is piped to the input stream
of the underlying connector.
|
java.io.OutputStream |
getOutputStream()
Returns an gzip output stream that is piped to the output stream
of the underlying connector.
|
IPlugin |
getPlugin()
Returns a reference to the plug-in that created the connector.
|
void |
release()
Releases the connector and closes all potentially open input and
output streams.
|
public SecureModifier.StreamConnector(IStreamConnector connector, AESSymmetricKey encryption, HMACSymmetricKey signature, byte[] initializationVector)
connector
- The connector used to create basic input and
output streams.encryption
- The encryption key to use.signature
- The signature key to use.public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface IStreamConnector
java.io.IOException
- Thrown by the underlying stream.public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface IStreamConnector
java.io.IOException
- Thrown by the underlying stream.public void release()
release
in interface IConnector
public IPlugin getPlugin()
getPlugin
in interface IConnector