public class SslProtocolCodec extends Object implements WrappingProtocolCodec, SecuredSession
| Modifier and Type | Class and Description |
|---|---|
static class |
SslProtocolCodec.ClientAuth |
class |
SslProtocolCodec.SSLReadChannel |
class |
SslProtocolCodec.SSLWriteChannel |
ProtocolCodec.BufferState| Constructor and Description |
|---|
SslProtocolCodec() |
| Modifier and Type | Method and Description |
|---|---|
SslProtocolCodec |
client() |
ProtocolCodec.BufferState |
flush()
Attempts to complete the previous write which did not complete.
|
boolean |
full()
Is the codec's buffer full?
|
long |
getLastReadSize() |
long |
getLastWriteSize() |
ProtocolCodec |
getNext() |
X509Certificate[] |
getPeerX509Certificates()
Gets the X509Certificate associated withe the peer.
|
int |
getReadBufferSize() |
long |
getReadCounter() |
SSLSession |
getSSLSession() |
int |
getWriteBufferSize() |
long |
getWriteCounter() |
void |
handshake() |
protected void |
initializeEngine() |
Object |
read()
Non-blocking channel based decoding.
|
SslProtocolCodec |
server(SslProtocolCodec.ClientAuth clientAuth) |
void |
setNext(ProtocolCodec next) |
void |
setSSLContext(SSLContext ctx) |
void |
setTransport(Transport transport) |
protected boolean |
transportFlush() |
void |
unread(byte[] buffer)
Pushes back a buffer as being unread.
|
ProtocolCodec.BufferState |
write(Object value)
Non-blocking channel based encoding.
|
public SslProtocolCodec()
public ProtocolCodec getNext()
getNext in interface WrappingProtocolCodecpublic void setNext(ProtocolCodec next)
setNext in interface WrappingProtocolCodecpublic void setSSLContext(SSLContext ctx)
public SslProtocolCodec client() throws Exception
Exceptionpublic SslProtocolCodec server(SslProtocolCodec.ClientAuth clientAuth) throws Exception
Exceptionprotected void initializeEngine() throws Exception
Exceptionpublic SSLSession getSSLSession()
public X509Certificate[] getPeerX509Certificates()
SecuredSessiongetPeerX509Certificates in interface SecuredSessionpublic void setTransport(Transport transport)
setTransport in interface ProtocolCodecpublic void handshake() throws IOException
IOExceptionprotected boolean transportFlush() throws IOException
IOExceptionpublic void unread(byte[] buffer)
ProtocolCodecunread in interface ProtocolCodecpublic Object read() throws IOException
ProtocolCodecread in interface ProtocolCodecIOExceptionpublic ProtocolCodec.BufferState write(Object value) throws IOException
ProtocolCodecwrite in interface ProtocolCodecIOExceptionpublic ProtocolCodec.BufferState flush() throws IOException
ProtocolCodecflush in interface ProtocolCodecIOExceptionpublic boolean full()
ProtocolCodecfull in interface ProtocolCodecpublic long getWriteCounter()
getWriteCounter in interface ProtocolCodecpublic long getLastWriteSize()
getLastWriteSize in interface ProtocolCodecpublic long getReadCounter()
getReadCounter in interface ProtocolCodecpublic long getLastReadSize()
getLastReadSize in interface ProtocolCodecpublic int getReadBufferSize()
getReadBufferSize in interface ProtocolCodecpublic int getWriteBufferSize()
getWriteBufferSize in interface ProtocolCodecCopyright © 2010-2013 FuseSource, Corp.. All Rights Reserved.