Skip navigation links
com.tangosol.net.security
Class AsymmetricEncryptionFilter.IdentityInputStream
java.lang.Object
java.io.InputStream
com.tangosol.io.WrapperInputStream
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 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
|
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 |
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
AsymmetricEncryptionFilter.IdentityInputStream
public AsymmetricEncryptionFilter.IdentityInputStream(java.io.InputStream stream)
- Construct a IdentityInputStream around the supplied stream.
- Parameters:
stream
- the stream to wrap
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
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.