Home | History | Annotate | Download | only in jsse

Lines Matching refs:ProtocolVersion

20 import org.apache.harmony.xnet.provider.jsse.ProtocolVersion;
24 * Tests for <code>ProtocolVersion</code> constructor and methods
30 assertEquals(ProtocolVersion.getByVersion(new byte[] { 3, 0 }),
31 ProtocolVersion.getByName("SSLv3"));
32 assertEquals(ProtocolVersion.getByVersion(new byte[] { 3, 1 }),
33 ProtocolVersion.getByName("TLSv1"));
34 assertFalse(ProtocolVersion.getByVersion(new byte[] { 3, 0 }).equals(
35 ProtocolVersion.getByName("TLSv1")));
43 assertTrue(ProtocolVersion.isSupported(new byte[] { 3, 0 }));
44 assertTrue(ProtocolVersion.isSupported(new byte[] { 3, 1 }));
45 assertFalse(ProtocolVersion.isSupported(new byte[] { 3, 2 }));
49 assertNull(ProtocolVersion.getByVersion(new byte[] { 2, 1 }));
51 ProtocolVersion.getByVersion(new byte[] { 3, 0 }).name);
53 ProtocolVersion.getByVersion(new byte[] { 3, 1 }).name);
60 assertTrue(ProtocolVersion.isSupported("SSLv3"));
61 assertTrue(ProtocolVersion.isSupported("SSL"));
62 assertTrue(ProtocolVersion.isSupported("TLSv1"));
63 assertTrue(ProtocolVersion.isSupported("TLS"));
64 assertFalse(ProtocolVersion.isSupported("SSLv4"));
68 assertNull(ProtocolVersion.getByName("SSLv2"));
69 assertEquals("SSLv3", ProtocolVersion.getByName("SSLv3").name);
70 assertEquals("TLSv1", ProtocolVersion.getByName("TLSv1").name);
74 ProtocolVersion ver = ProtocolVersion.getLatestVersion(new String[] {
78 ver = ProtocolVersion.getLatestVersion(new String[] {"SSLv3",