示例#1
0
 @Override
 protected void initSsl(SocketWrapper<NioChannel> socket, Processor<NioChannel> processor) {
   if (proto.isSSLEnabled()
       && (proto.sslImplementation != null)
       && (socket.getSocket() instanceof SecureNioChannel)) {
     SecureNioChannel ch = (SecureNioChannel) socket.getSocket();
     processor.setSslSupport(
         proto.sslImplementation.getSSLSupport(ch.getSslEngine().getSession()));
   } else {
     processor.setSslSupport(null);
   }
 }