org.eclipse.jetty.io.nio
类 SslConnection

java.lang.Object
  继承者 org.eclipse.jetty.io.AbstractConnection
      继承者 org.eclipse.jetty.io.nio.SslConnection
所有已实现的接口:
Connection, AsyncConnection

public class SslConnection
extends AbstractConnection
implements AsyncConnection

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).


嵌套类摘要
 class SslConnection.SslEndPoint
           
 
字段摘要
 
从类 org.eclipse.jetty.io.AbstractConnection 继承的字段
_endp
 
构造方法摘要
SslConnection(SSLEngine engine, EndPoint endp)
           
SslConnection(SSLEngine engine, EndPoint endp, long timeStamp)
           
 
方法摘要
 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.
 String toString()
           
 
从类 org.eclipse.jetty.io.AbstractConnection 继承的方法
getEndPoint, getTimeStamp
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 org.eclipse.jetty.io.Connection 继承的方法
getTimeStamp
 

构造方法详细信息

SslConnection

public SslConnection(SSLEngine engine,
                     EndPoint endp)

SslConnection

public SslConnection(SSLEngine engine,
                     EndPoint endp,
                     long timeStamp)
方法详细信息

newSslEndPoint

protected SslConnection.SslEndPoint newSslEndPoint()

isAllowRenegotiate

public boolean isAllowRenegotiate()
返回:
True if SSL re-negotiation is allowed (default false)

setAllowRenegotiate

public void setAllowRenegotiate(boolean allowRenegotiate)
Set if SSL re-negotiation is allowed. CVE-2009-3555 discovered a vulnerability in SSL/TLS with re-negotiation. If your JVM does not have CVE-2009-3555 fixed, then re-negotiation should not be allowed. CVE-2009-3555 was fixed in Sun java 1.6 with a ban of renegotiates in u19 and with RFC5746 in u22.

参数:
allowRenegotiate - true if re-negotiation is allowed (default false)

handle

public Connection handle()
                  throws IOException
从接口 Connection 复制的描述
Handle the connection.

指定者:
接口 Connection 中的 handle
返回:
The Connection to use for the next handling of the connection. This allows protocol upgrades and support for CONNECT.
抛出:
IOException - if the handling of I/O operations fail

isIdle

public boolean isIdle()
指定者:
接口 Connection 中的 isIdle
返回:
whether this connection is idle, that is not parsing and not generating
另请参见:
Connection.onIdleExpired(long)

isSuspended

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().

指定者:
接口 Connection 中的 isSuspended
返回:
true to indicate interest in further reads, false otherwise

onClose

public void onClose()
从接口 Connection 复制的描述
Called after the connection is closed

指定者:
接口 Connection 中的 onClose

onIdleExpired

public void onIdleExpired(long idleForMs)
从接口 Connection 复制的描述
Called when the connection idle timeout expires

指定者:
接口 Connection 中的 onIdleExpired
覆盖:
AbstractConnection 中的 onIdleExpired
参数:
idleForMs - how long the connection has been idle
另请参见:
Connection.isIdle()

onInputShutdown

public void onInputShutdown()
                     throws IOException
指定者:
接口 AsyncConnection 中的 onInputShutdown
抛出:
IOException

getSslEndPoint

public AsyncEndPoint getSslEndPoint()

toString

public String toString()
覆盖:
AbstractConnection 中的 toString


Copyright © 2013. All Rights Reserved.