org.mortbay.jetty.security
Class SslHttpChannelEndPoint

java.lang.Object
  extended by org.mortbay.io.nio.ChannelEndPoint
      extended by org.mortbay.io.nio.SelectChannelEndPoint
          extended by org.mortbay.jetty.nio.SelectChannelConnector.ConnectorEndPoint
              extended by org.mortbay.jetty.security.SslHttpChannelEndPoint
All Implemented Interfaces:
java.lang.Runnable, org.mortbay.io.EndPoint

public class SslHttpChannelEndPoint
extends org.mortbay.jetty.nio.SelectChannelConnector.ConnectorEndPoint
implements java.lang.Runnable

SslHttpChannelEndPoint.

Author:
Nik Gonzalez , Greg Wilkins

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mortbay.io.nio.SelectChannelEndPoint
org.mortbay.io.nio.SelectChannelEndPoint.IdleTask
 
Field Summary
protected  javax.net.ssl.SSLSession _session
           
 
Fields inherited from class org.mortbay.io.nio.SelectChannelEndPoint
_connection, _dispatched, _interestOps, _key, _manager, _readBlocked, _selectSet, _writable, _writeBlocked
 
Fields inherited from class org.mortbay.io.nio.ChannelEndPoint
_channel, _gather2, _local, _remote, _socket
 
Constructor Summary
SslHttpChannelEndPoint(org.mortbay.io.Buffers buffers, java.nio.channels.SocketChannel channel, org.mortbay.io.nio.SelectorManager.SelectSet selectSet, java.nio.channels.SelectionKey key, javax.net.ssl.SSLEngine engine)
           
 
Method Summary
 void close()
           
protected  void doIdleExpired()
           
 void dump()
           
 int fill(org.mortbay.io.Buffer buffer)
           
 void flush()
           
 int flush(org.mortbay.io.Buffer buffer)
           
 int flush(org.mortbay.io.Buffer header, org.mortbay.io.Buffer buffer, org.mortbay.io.Buffer trailer)
           
 javax.net.ssl.SSLEngine getSSLEngine()
           
protected  void idleExpired()
           
 boolean isAllowRenegotiate()
           
 boolean isBufferingInput()
           
 boolean isBufferingOutput()
           
 boolean isBufferred()
           
 void setAllowRenegotiate(boolean allowRenegotiate)
          Set if SSL re-negotiation is allowed.
 java.lang.String toString()
           
 
Methods inherited from class org.mortbay.jetty.nio.SelectChannelConnector.ConnectorEndPoint
undispatch
 
Methods inherited from class org.mortbay.io.nio.SelectChannelEndPoint
blockReadable, blockWritable, cancelIdle, dispatch, getConnection, getSelectSet, getTimeoutTask, run, scheduleIdle, scheduleWrite, setWritable
 
Methods inherited from class org.mortbay.io.nio.ChannelEndPoint
getChannel, getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

_session

protected javax.net.ssl.SSLSession _session
Constructor Detail

SslHttpChannelEndPoint

public SslHttpChannelEndPoint(org.mortbay.io.Buffers buffers,
                              java.nio.channels.SocketChannel channel,
                              org.mortbay.io.nio.SelectorManager.SelectSet selectSet,
                              java.nio.channels.SelectionKey key,
                              javax.net.ssl.SSLEngine engine)
                       throws javax.net.ssl.SSLException,
                              java.io.IOException
Throws:
javax.net.ssl.SSLException
java.io.IOException
Method Detail

isAllowRenegotiate

public boolean isAllowRenegotiate()
Returns:
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.

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

dump

public void dump()

idleExpired

protected void idleExpired()
Overrides:
idleExpired in class org.mortbay.io.nio.SelectChannelEndPoint

doIdleExpired

protected void doIdleExpired()

close

public void close()
           throws java.io.IOException
Specified by:
close in interface org.mortbay.io.EndPoint
Overrides:
close in class org.mortbay.jetty.nio.SelectChannelConnector.ConnectorEndPoint
Throws:
java.io.IOException

fill

public int fill(org.mortbay.io.Buffer buffer)
         throws java.io.IOException
Specified by:
fill in interface org.mortbay.io.EndPoint
Overrides:
fill in class org.mortbay.io.nio.ChannelEndPoint
Throws:
java.io.IOException

flush

public int flush(org.mortbay.io.Buffer buffer)
          throws java.io.IOException
Specified by:
flush in interface org.mortbay.io.EndPoint
Overrides:
flush in class org.mortbay.io.nio.SelectChannelEndPoint
Throws:
java.io.IOException

flush

public int flush(org.mortbay.io.Buffer header,
                 org.mortbay.io.Buffer buffer,
                 org.mortbay.io.Buffer trailer)
          throws java.io.IOException
Specified by:
flush in interface org.mortbay.io.EndPoint
Overrides:
flush in class org.mortbay.io.nio.SelectChannelEndPoint
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface org.mortbay.io.EndPoint
Overrides:
flush in class org.mortbay.io.nio.ChannelEndPoint
Throws:
java.io.IOException

isBufferingInput

public boolean isBufferingInput()
Specified by:
isBufferingInput in interface org.mortbay.io.EndPoint
Overrides:
isBufferingInput in class org.mortbay.io.nio.ChannelEndPoint

isBufferingOutput

public boolean isBufferingOutput()
Specified by:
isBufferingOutput in interface org.mortbay.io.EndPoint
Overrides:
isBufferingOutput in class org.mortbay.io.nio.ChannelEndPoint

isBufferred

public boolean isBufferred()
Specified by:
isBufferred in interface org.mortbay.io.EndPoint
Overrides:
isBufferred in class org.mortbay.io.nio.ChannelEndPoint

getSSLEngine

public javax.net.ssl.SSLEngine getSSLEngine()

toString

public java.lang.String toString()
Overrides:
toString in class org.mortbay.io.nio.SelectChannelEndPoint


Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.