Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


com.tangosol.net.security
Class AsymmetricEncryptionFilter.IdentityInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.tangosol.io.WrapperInputStream
          extended by com.tangosol.net.security.AsymmetricEncryptionFilter.IdentityInputStream

All Implemented Interfaces:
InputStreaming, Closeable
Enclosing class:
AsymmetricEncryptionFilter

public class AsymmetricEncryptionFilter.IdentityInputStream
extends WrapperInputStream

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


Field Summary
protected  Certificate m_certificate
           
protected  ProtocolContext m_context
           
protected  InputStream m_streamInner
           

 

Constructor Summary
AsymmetricEncryptionFilter.IdentityInputStream(InputStream stream)
          Construct a IdentityInputStream around the supplied stream.

 

Method Summary
 void close()
          Close the InputStream and release any system resources associated with it.
protected  Certificate readIdentity()
          Read the identity from the inner stream and return it as a Certificate.
 void setProtocolContext(ProtocolContext context)
          Set the current protocol context.

 

Methods inherited from class com.tangosol.io.WrapperInputStream
available, ensureInputStream, getInputStream, mark, markSupported, read, read, read, reset, setInputStream, skip

 

Field Detail

m_streamInner

protected InputStream m_streamInner

m_context

protected ProtocolContext m_context

m_certificate

protected Certificate m_certificate

Constructor Detail

AsymmetricEncryptionFilter.IdentityInputStream

public AsymmetricEncryptionFilter.IdentityInputStream(InputStream stream)
Construct a IdentityInputStream 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.

readIdentity

protected Certificate readIdentity()
Read the identity from the inner stream and return it as a Certificate.
Returns:
the identity in the form of a Certificate

close

public void close()
           throws IOException
Close the InputStream and release any system resources associated with it.
Specified by:
close in interface InputStreaming
Specified by:
close in interface Closeable
Overrides:
close in class WrapperInputStream
Throws:
IOException - if an I/O error occurs

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.