Java Code Examples for org.apache.coyote.Processor#setSslSupport()

The following examples show how to use org.apache.coyote.Processor#setSslSupport() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Http11Protocol.java    From Tomcat7.0.67 with Apache License 2.0 5 votes vote down vote up
@Override
protected void initSsl(SocketWrapper<Socket> socket,
        Processor<Socket> processor) {
    if (proto.isSSLEnabled() && (proto.sslImplementation != null)) {
        processor.setSslSupport(
                proto.sslImplementation.getSSLSupport(
                        socket.getSocket()));
    } else {
        processor.setSslSupport(null);
    }

}
 
Example 2
Source File: Http11NioProtocol.java    From Tomcat7.0.67 with Apache License 2.0 5 votes vote down vote up
@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);
    }

}
 
Example 3
Source File: Http11Protocol.java    From tomcatsrc with Apache License 2.0 5 votes vote down vote up
@Override
protected void initSsl(SocketWrapper<Socket> socket,
        Processor<Socket> processor) {
    if (proto.isSSLEnabled() && (proto.sslImplementation != null)) {
        processor.setSslSupport(
                proto.sslImplementation.getSSLSupport(
                        socket.getSocket()));
    } else {
        processor.setSslSupport(null);
    }

}
 
Example 4
Source File: Http11NioProtocol.java    From tomcatsrc with Apache License 2.0 5 votes vote down vote up
@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);
    }

}