Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


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:
com.oracle.common.io.InputStreaming, com.tangosol.net.internal.ProtocolAwareStream, java.io.Closeable
Enclosing class:
AsymmetricEncryptionFilter

public class AsymmetricEncryptionFilter.IdentityInputStream
extends WrapperInputStream
implements com.tangosol.net.internal.ProtocolAwareStream

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


Nested Class Summary

 

Nested classes/interfaces inherited from interface com.tangosol.net.internal.ProtocolAwareStream
com.tangosol.net.internal.ProtocolAwareStream.ProtocolContext

 

Field Summary
protected  java.security.cert.Certificate m_certificate
           
protected  com.tangosol.net.internal.ProtocolAwareStream.ProtocolContext m_context
           
protected  java.io.InputStream m_streamInner
           

 

Constructor Summary
AsymmetricEncryptionFilter.IdentityInputStream(java.io.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  java.security.cert.Certificate readIdentity()
          Read the identity from the inner stream and return it as a Certificate.
 void setProtocolContext(com.tangosol.net.internal.ProtocolAwareStream.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 java.io.InputStream m_streamInner

m_context

protected com.tangosol.net.internal.ProtocolAwareStream.ProtocolContext m_context

m_certificate

protected java.security.cert.Certificate m_certificate

Constructor Detail

AsymmetricEncryptionFilter.IdentityInputStream

public AsymmetricEncryptionFilter.IdentityInputStream(java.io.InputStream stream)
Construct a IdentityInputStream around the supplied stream.
Parameters:
stream - the stream to wrap

Method Detail

setProtocolContext

public void setProtocolContext(com.tangosol.net.internal.ProtocolAwareStream.ProtocolContext context)
Set the current protocol context.
Specified by:
setProtocolContext in interface com.tangosol.net.internal.ProtocolAwareStream
Parameters:
context - the current context of the protocol.

readIdentity

protected java.security.cert.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 java.io.IOException
Close the InputStream and release any system resources associated with it.
Specified by:
close in interface com.oracle.common.io.InputStreaming
Specified by:
close in interface java.io.Closeable
Overrides:
close in class WrapperInputStream
Throws:
java.io.IOException - if an I/O error occurs

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


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