|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.io.nio.SslConnection
public class SslConnection
SSL Connection.
An AysyncConnection that acts as an interceptor between and EndPoint and another
Connection, that implements TLS encryption using an SSLEngine
.
The connector uses an AsyncEndPoint
(like SelectChannelEndPoint
) as
it's source/sink of encrypted data. It then provides getSslEndPoint()
to
expose a source/sink of unencrypted data to another connection (eg HttpConnection).
Nested Class Summary | |
---|---|
class |
SslConnection.SslEndPoint
|
Field Summary |
---|
Fields inherited from class org.eclipse.jetty.io.AbstractConnection |
---|
_endp |
Constructor Summary | |
---|---|
SslConnection(javax.net.ssl.SSLEngine engine,
EndPoint endp)
|
|
SslConnection(javax.net.ssl.SSLEngine engine,
EndPoint endp,
long timeStamp)
|
Method Summary | |
---|---|
AsyncEndPoint |
getSslEndPoint()
|
Connection |
handle()
Handle the connection. |
boolean |
isAllowRenegotiate()
|
boolean |
isIdle()
|
boolean |
isSuspended()
The semantic of this method is to return true to indicate interest in further reads, or false otherwise, but it is misnamed and should be really called isReadInterested() . |
protected SslConnection.SslEndPoint |
newSslEndPoint()
|
void |
onClose()
Called after the connection is closed |
void |
onIdleExpired(long idleForMs)
Called when the connection idle timeout expires |
void |
onInputShutdown()
|
void |
setAllowRenegotiate(boolean allowRenegotiate)
Set if SSL re-negotiation is allowed. |
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.jetty.io.AbstractConnection |
---|
getEndPoint, getTimeStamp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jetty.io.Connection |
---|
getTimeStamp |
Constructor Detail |
---|
public SslConnection(javax.net.ssl.SSLEngine engine, EndPoint endp)
public SslConnection(javax.net.ssl.SSLEngine engine, EndPoint endp, long timeStamp)
Method Detail |
---|
protected SslConnection.SslEndPoint newSslEndPoint()
public boolean isAllowRenegotiate()
public void setAllowRenegotiate(boolean allowRenegotiate)
allowRenegotiate
- true if re-negotiation is allowed (default false)public Connection handle() throws java.io.IOException
Connection
handle
in interface Connection
java.io.IOException
- if the handling of I/O operations failpublic boolean isIdle()
isIdle
in interface Connection
Connection.onIdleExpired(long)
public boolean isSuspended()
Connection
The semantic of this method is to return true to indicate interest in further reads,
or false otherwise, but it is misnamed and should be really called isReadInterested()
.
isSuspended
in interface Connection
public void onClose()
Connection
onClose
in interface Connection
public void onIdleExpired(long idleForMs)
Connection
onIdleExpired
in interface Connection
onIdleExpired
in class AbstractConnection
idleForMs
- how long the connection has been idleConnection.isIdle()
public void onInputShutdown() throws java.io.IOException
onInputShutdown
in interface AsyncConnection
java.io.IOException
public AsyncEndPoint getSslEndPoint()
public java.lang.String toString()
toString
in class AbstractConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |