Example usage for javax.net.ssl SSLEngine setEnableSessionCreation

List of usage examples for javax.net.ssl SSLEngine setEnableSessionCreation

Introduction

In this page you can find the example usage for javax.net.ssl SSLEngine setEnableSessionCreation.

Prototype

public abstract void setEnableSessionCreation(boolean flag);

Source Link

Document

Controls whether new SSL sessions may be established by this engine.

Usage

From source file:com.github.mrstampy.gameboot.otp.netty.server.EncryptedServerInitializer.java

private SSLEngine createSslEngine() {
    SSLEngine engine = sslContext.createSSLEngine();

    engine.setUseClientMode(false);/*from  w  w  w.j  a  va2  s.co  m*/
    engine.setNeedClientAuth(false);
    engine.setEnableSessionCreation(true);

    return engine;
}