Searched refs:cipherSuites (Results 1 – 10 of 10) sorted by relevance
/libcore/luni/src/main/java/javax/net/ssl/ |
D | SSLParameters.java | 26 private String[] cipherSuites; field in SSLParameters 47 public SSLParameters(String[] cipherSuites) { in SSLParameters() argument 48 setCipherSuites(cipherSuites); in SSLParameters() 61 public SSLParameters(String[] cipherSuites, in SSLParameters() argument 63 setCipherSuites(cipherSuites); in SSLParameters() 72 if (cipherSuites == null) { in getCipherSuites() 75 return cipherSuites.clone(); in getCipherSuites() 81 public void setCipherSuites(String[] cipherSuites) { in setCipherSuites() argument 82 this.cipherSuites = ((cipherSuites == null) in setCipherSuites() 84 : cipherSuites.clone()); in setCipherSuites()
|
D | SSLContextSpi.java | 141 String[] cipherSuites; in createSSLParameters() local 144 cipherSuites = s.getSupportedCipherSuites(); in createSSLParameters() 147 cipherSuites = s.getEnabledCipherSuites(); in createSSLParameters() 150 p.setCipherSuites(cipherSuites); in createSSLParameters()
|
D | SSLSocket.java | 1023 String[] cipherSuites = p.getCipherSuites(); in setSSLParameters() local 1024 if (cipherSuites != null) { in setSSLParameters() 1025 setEnabledCipherSuites(cipherSuites); in setSSLParameters()
|
D | SSLEngine.java | 1113 String[] cipherSuites = p.getCipherSuites(); in setSSLParameters() local 1114 if (cipherSuites != null) { in setSSLParameters() 1115 setEnabledCipherSuites(cipherSuites); in setSSLParameters()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLParametersTest.java | 34 String[] cipherSuites = new String[] { "foo", null, "bar" }; in test_SSLParameters_cipherSuitesConstructor() local 35 SSLParameters p = new SSLParameters(cipherSuites); in test_SSLParameters_cipherSuitesConstructor() 37 assertNotSame(cipherSuites, p.getCipherSuites()); in test_SSLParameters_cipherSuitesConstructor() 38 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_cipherSuitesConstructor() 45 String[] cipherSuites = new String[] { "foo", null, "bar" }; in test_SSLParameters_cpherSuitesProtocolsConstructor() local 47 SSLParameters p = new SSLParameters(cipherSuites, protocols); in test_SSLParameters_cpherSuitesProtocolsConstructor() 50 assertNotSame(cipherSuites, p.getCipherSuites()); in test_SSLParameters_cpherSuitesProtocolsConstructor() 52 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_cpherSuitesProtocolsConstructor() 63 String[] cipherSuites = new String[] { "fnord" }; in test_SSLParameters_CipherSuites() local 64 String[] copy = cipherSuites.clone(); in test_SSLParameters_CipherSuites() [all …]
|
D | SSLServerSocketTest.java | 34 String[] cipherSuites = new String[] {socket.getSupportedCipherSuites()[0]}; in testSetEnabledCipherSuitesAffectsGetter() local 35 socket.setEnabledCipherSuites(cipherSuites); in testSetEnabledCipherSuitesAffectsGetter() 36 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(socket.getEnabledCipherSuites())); in testSetEnabledCipherSuitesAffectsGetter()
|
D | SSLEngineTest.java | 174 String[] cipherSuites = c.clientContext.createSSLEngine().getSupportedCipherSuites(); in test_SSLEngine_getSupportedCipherSuites_connect() local 175 for (String cipherSuite : cipherSuites) { in test_SSLEngine_getSupportedCipherSuites_connect() 346 String[] cipherSuites = new String[] { e.getSupportedCipherSuites()[0] }; in test_SSLEngine_setEnabledCipherSuites() local 347 e.setEnabledCipherSuites(cipherSuites); in test_SSLEngine_setEnabledCipherSuites() 348 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites())); in test_SSLEngine_setEnabledCipherSuites() 665 String[] cipherSuites = p.getCipherSuites(); 666 assertNotSame(cipherSuites, e.getEnabledCipherSuites()); 667 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites()));
|
D | SSLSocketTest.java | 117 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect() local 119 for (String cipherSuite : cipherSuites) { in test_SSLSocket_getSupportedCipherSuites_connect() 240 String[] cipherSuites = new String[] { ssl.getSupportedCipherSuites()[0] }; in test_SSLSocket_setEnabledCipherSuites() local 241 ssl.setEnabledCipherSuites(cipherSuites); in test_SSLSocket_setEnabledCipherSuites() 242 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_setEnabledCipherSuites() 955 String[] cipherSuites = p.getCipherSuites(); in test_SSLSocket_getSSLParameters() local 956 assertNotSame(cipherSuites, ssl.getEnabledCipherSuites()); in test_SSLSocket_getSSLParameters() 957 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(ssl.getEnabledCipherSuites())); in test_SSLSocket_getSSLParameters()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 946 public static Set<String> assertValidCipherSuites(Set<String> expected, String[] cipherSuites) { in assertValidCipherSuites() argument 947 assertNotNull(cipherSuites); in assertValidCipherSuites() 948 assertTrue(cipherSuites.length != 0); in assertValidCipherSuites() 953 for (String cipherSuite : cipherSuites) { in assertValidCipherSuites() 968 public static void assertSupportedCipherSuites(Set<String> expected, String[] cipherSuites) { in assertSupportedCipherSuites() argument 969 Set<String> remainingCipherSuites = assertValidCipherSuites(expected, cipherSuites); in assertSupportedCipherSuites() 971 assertEquals(expected.size(), cipherSuites.length); in assertSupportedCipherSuites() 1053 public static void assertValidCipherSuites(String[] cipherSuites) { in assertValidCipherSuites() argument 1054 assertValidCipherSuites(CIPHER_SUITES, cipherSuites); in assertValidCipherSuites() 1060 public static void assertSupportedCipherSuites(String[] cipherSuites) { in assertSupportedCipherSuites() argument [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLEngineTest.java | 1050 String[] cipherSuites = engine.getSupportedCipherSuites(); in HandshakeHandler() local 1052 for (String cipherSuite : cipherSuites) { in HandshakeHandler()
|