Code example for SSLEngine

Methods: getSession

0
    
    protected void doStart() throws Exception 
    { 
        _context=createSSLContext();
        SSLEngine engine=_context.createSSLEngine();
        SSLSession session=engine.getSession();
        if (getHeaderBufferSize()<session.getApplicationBufferSize())
            setHeaderBufferSize(session.getApplicationBufferSize());
        if (getRequestBufferSize()<session.getApplicationBufferSize())
            setRequestBufferSize(session.getApplicationBufferSize());
        super.doStart(); 
    } 
 
    protected SSLContext createSSLContext() throws Exception
    { 
        if (_truststore==null)
        { 
            _truststore=_keystore;
            _truststoreType=_keystoreType;
        }