Package org.tamacat.httpd.ssl

Examples of org.tamacat.httpd.ssl.SSLContextCreator


   * @return created the {@link ServerSocket}
   * @throws IOException
   */
  protected ServerSocket createSecureServerSocket(int port) throws IOException {
    if (sslContextCreator == null) {
      sslContextCreator = new SSLContextCreator(serverConfig);
    }
    SSLContext ctx = sslContextCreator.getSSLContext();
        return ctx.getServerSocketFactory().createServerSocket(port);
  }
View Full Code Here


    ServerConfig serverConfig = new ServerConfig(PropertyUtils.getProperties("server.properties"));
    engine.setServerConfig(serverConfig);
    //ServerSocket socket = engine.createSecureServerSocket(8080);
    //socket.close();
   
    SSLContextCreator sslContextCreator = new SSLContextCreator(serverConfig);
    engine.setSSLContextCreator(sslContextCreator);
   
    //socket = engine.createSecureServerSocket(8080);
    //socket.close();
  }
View Full Code Here

TOP

Related Classes of org.tamacat.httpd.ssl.SSLContextCreator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.