Package org.apache.harmony.xnet.provider.jsse

Examples of org.apache.harmony.xnet.provider.jsse.ProtocolVersion


        assertEquals("SSLv3", ProtocolVersion.getByName("SSLv3").name);
        assertEquals("TLSv1", ProtocolVersion.getByName("TLSv1").name);
    }

    public void testGetLatestVersion() {
        ProtocolVersion ver = ProtocolVersion.getLatestVersion(new String[] {
                "SSLv2", "TLSv1", "SSLv3" });
        assertEquals("Incorrect protocol version", "TLSv1", ver.name);

        ver = ProtocolVersion.getLatestVersion(new String[] {"SSLv3",
                "unknown", "SSLv2" });
View Full Code Here

TOP

Related Classes of org.apache.harmony.xnet.provider.jsse.ProtocolVersion

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.