Examples of TLSParams


Examples of io.apigee.trireme.net.spi.TLSParams

        private TLSParams makeTLSParams(Context cx, SecureContextImpl sc, boolean rejectUnauthorized,
                                        boolean requestCert)
        {
            SSLContext ctx = sc.makeContext(cx, this);

            TLSParams t = new TLSParams();
            t.setContext(ctx);

            if (sc.getCipherSuites() != null) {
                t.setCiphers(sc.getCipherSuites());
            }
            if (requestCert) {
                if (rejectUnauthorized) {
                    t.setClientAuthRequired(true);
                } else {
                    t.setClientAuthRequested(true);
                }
            }

            return t;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.