Package net.jini.jeri.ssl

Examples of net.jini.jeri.ssl.HttpsEndpoint


        //Obtain an instance of SslTrustVerifier
        SslTrustVerifier verifier = new SslTrustVerifier();
        //Verify that instances of HttpsEndpoint and SslEndpoint
        //with no socket factories are trusted.
        int port = Integer.parseInt(getStringValue("listenPort"));
        HttpsEndpoint httpsEndpoint = HttpsEndpoint.getInstance(
            InetAddress.getLocalHost().getHostAddress(), port);
        TestTrustVerifierCtxSSL ctx = new TestTrustVerifierCtxSSL();
        if (!verifier.isTrustedObject(httpsEndpoint,ctx)){
            throw new TestException("HttpsEndpoint instance"
                + " with no socket factory is considered untrusted");
View Full Code Here

TOP

Related Classes of net.jini.jeri.ssl.HttpsEndpoint

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.