CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.net.security
Class AsymmetricEncryptionFilter.IdentityOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.tangosol.io.WrapperOutputStream
          extended by com.tangosol.net.security.AsymmetricEncryptionFilter.IdentityOutputStream
All Implemented Interfaces:
OutputStreaming, Closeable, Flushable
Enclosing class:
AsymmetricEncryptionFilter

public class AsymmetricEncryptionFilter.IdentityOutputStream
extends WrapperOutputStream

Stream which writes an unencrypted identity header followed by an encrypted payload.


Field Summary
protected  OutputStream m_streamInner
           
 
Fields inherited from class com.tangosol.io.WrapperOutputStream
m_out
 
Constructor Summary
AsymmetricEncryptionFilter.IdentityOutputStream(OutputStream stream)
          Construct a IdentityOutputStream around the supplied stream.
 
Method Summary
 void setProtocolContext(ProtocolContext context)
          Set the current protocol context.
protected  void writeIdentity()
          Write the local identity to inner stream.
 
Methods inherited from class com.tangosol.io.WrapperOutputStream
close, ensureOutputStream, flush, getOutputStream, setOutputStream, write, write, write
 

Field Detail

m_streamInner

protected OutputStream m_streamInner
Constructor Detail

AsymmetricEncryptionFilter.IdentityOutputStream

public AsymmetricEncryptionFilter.IdentityOutputStream(OutputStream stream)
Construct a IdentityOutputStream around the supplied stream.

Parameters:
stream - the stream to wrap
Method Detail

setProtocolContext

public void setProtocolContext(ProtocolContext context)
Set the current protocol context.

Parameters:
context - the current context of the protocol.

writeIdentity

protected void writeIdentity()
Write the local identity to inner stream.


CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation