Home
last modified time | relevance | path

Searched refs:StandardNames (Results 1 – 25 of 33) sorted by relevance

12

/libcore/support/src/test/java/libcore/javax/net/ssl/
DSSLDefaultConfigurationAsserts.java32 import libcore.java.security.StandardNames;
58 StandardNames.assertDefaultCipherSuites(sslSocketFactory.getDefaultCipherSuites()); in assertSSLSocketFactory()
59 StandardNames.assertSupportedCipherSuites(sslSocketFactory.getSupportedCipherSuites()); in assertSSLSocketFactory()
73 StandardNames.assertDefaultCipherSuites(sslServerSocketFactory.getDefaultCipherSuites()); in assertSSLServerSocketFactory()
74 StandardNames.assertSupportedCipherSuites(sslServerSocketFactory.getSupportedCipherSuites()); in assertSSLServerSocketFactory()
88 StandardNames.assertDefaultCipherSuites(sslSocket.getEnabledCipherSuites()); in assertSSLSocket()
89 StandardNames.assertSupportedCipherSuites(sslSocket.getSupportedCipherSuites()); in assertSSLSocket()
94 StandardNames.assertDefaultProtocolsClient(sslSocket.getEnabledProtocols()); in assertSSLSocket()
95 StandardNames.assertSupportedProtocols(sslSocket.getSupportedProtocols()); in assertSSLSocket()
112 StandardNames.assertDefaultCipherSuites(sslServerSocket.getEnabledCipherSuites()); in assertSSLServerSocket()
[all …]
DTestTrustManager.java27 import libcore.java.security.StandardNames;
77 if (!StandardNames.CLIENT_AUTH_TYPES.contains(authType)) { in assertClientAuthType()
98 if (!StandardNames.SERVER_AUTH_TYPES.contains(authType)) { in assertServerAuthType()
DTestKeyManager.java29 import libcore.java.security.StandardNames;
83 if (!StandardNames.KEY_TYPES.contains(keyType)) { in assertKeyType()
DTestSSLContext.java38 import libcore.java.security.StandardNames;
53 private static final boolean IS_RI = StandardNames.IS_RI;
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLContextTest.java33 import libcore.java.security.StandardNames;
72 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_setDefault()
87 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_defaultConfiguration()
89 if (!protocol.equals(StandardNames.SSL_CONTEXT_PROTOCOLS_DEFAULT)) { in test_SSLContext_defaultConfiguration()
107 new ArrayList<String>(StandardNames.CIPHER_SUITES_DEFAULT_PSK); in test_SSLContext_pskOnlyConfiguration_defaultProviderOnly()
108 expectedCipherSuites.add(StandardNames.CIPHER_SUITE_SECURE_RENEGOTIATION); in test_SSLContext_pskOnlyConfiguration_defaultProviderOnly()
122 new ArrayList<String>(StandardNames.CIPHER_SUITES_DEFAULT_PSK); in test_SSLContext_x509AndPskConfiguration_defaultProviderOnly()
123 expectedCipherSuites.addAll(StandardNames.CIPHER_SUITES_DEFAULT); in test_SSLContext_x509AndPskConfiguration_defaultProviderOnly()
148 Arrays.asList(StandardNames.CIPHER_SUITE_SECURE_RENEGOTIATION), in test_SSLContext_emptyConfiguration_defaultProviderOnly()
190 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { in test_SSLContext_getInstance()
[all …]
DSSLEngineTest.java35 import libcore.java.security.StandardNames;
178 if (StandardNames.IS_RI && "TLSv1.2".equals(c.clientContext.getProtocol()) in test_SSLEngine_getSupportedCipherSuites_connect()
179 && StandardNames.CIPHER_SUITES_OBSOLETE_TLS12.contains(cipherSuite)) { in test_SSLEngine_getSupportedCipherSuites_connect()
186 if (cipherSuite.equals(StandardNames.CIPHER_SUITE_SECURE_RENEGOTIATION) in test_SSLEngine_getSupportedCipherSuites_connect()
187 || cipherSuite.equals(StandardNames.CIPHER_SUITE_FALLBACK)) { in test_SSLEngine_getSupportedCipherSuites_connect()
202 StandardNames.CIPHER_SUITE_SECURE_RENEGOTIATION } in test_SSLEngine_getSupportedCipherSuites_connect()
490 assertTrue(StandardNames.IS_RI); in test_SSLEngine_setUseClientMode()
492 assertFalse(StandardNames.IS_RI); in test_SSLEngine_setUseClientMode()
638 assertTrue(StandardNames.IS_RI);
641 assertFalse(StandardNames.IS_RI);
DTrustManagerFactoryTest.java37 import libcore.java.security.StandardNames;
58 return (StandardNames.IS_RI && algorithm.equals("PKIX")); in supportsManagerFactoryParameters()
63 assertEquals(StandardNames.TRUST_MANAGER_FACTORY_DEFAULT, algorithm); in test_TrustManagerFactory_getDefaultAlgorithm()
151 = issuers.length > (StandardNames.IS_RI ? 1 : 2) * KEY_TYPES.length; in test_X509TrustManager()
DKeyManagerFactoryTest.java37 import libcore.java.security.StandardNames;
57 assertEquals(StandardNames.KEY_MANAGER_FACTORY_DEFAULT, algorithm); in test_KeyManagerFactory_getDefaultAlgorithm()
141 = StandardNames.KEY_TYPES.toArray(new String[StandardNames.KEY_TYPES.size()]);
DSSLSocketTest.java67 import libcore.java.security.StandardNames;
120 boolean errorExpected = StandardNames.IS_RI && cipherSuite.endsWith("_SHA256"); in test_SSLSocket_getSupportedCipherSuites_connect()
127 if (cipherSuite.equals(StandardNames.CIPHER_SUITE_SECURE_RENEGOTIATION)) { in test_SSLSocket_getSupportedCipherSuites_connect()
135 if (cipherSuite.equals(StandardNames.CIPHER_SUITE_FALLBACK)) { in test_SSLSocket_getSupportedCipherSuites_connect()
149 StandardNames.CIPHER_SUITE_SECURE_RENEGOTIATION }; in test_SSLSocket_getSupportedCipherSuites_connect()
629 assertTrue(StandardNames.IS_RI); in test_SSLSocket_setUseClientMode()
631 assertFalse(StandardNames.IS_RI); in test_SSLSocket_setUseClientMode()
1083 assertTrue(StandardNames.IS_RI); in test_SSLSocket_close()
1085 assertFalse(StandardNames.IS_RI); in test_SSLSocket_close()
1096 assertTrue(StandardNames.IS_RI); in test_SSLSocket_close()
[all …]
DSSLSessionTest.java19 import libcore.java.security.StandardNames;
47 assertEquals(StandardNames.CIPHER_SUITE_INVALID, s.invalid.getCipherSuite()); in test_SSLSession_getCipherSuite()
52 StandardNames.assertValidCipherSuites(new String[] {s.server.getCipherSuite()}); in test_SSLSession_getCipherSuite()
223 assertTrue(StandardNames.SSL_SOCKET_PROTOCOLS.contains(s.server.getProtocol())); in test_SSLSession_getProtocol()
DSSLSocketFactoryTest.java43 import libcore.java.security.StandardNames;
173 if (!StandardNames.IS_RI) { in test_SSLSocketFactory_getDefault_cacheInvalidate()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactory2Test.java40 import libcore.java.security.StandardNames;
115 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_generatePrivateLjava_security_spec_KeySpec()
123 StandardNames.getPrivateKeySpecClass(keyfactAlgs[i])); in test_generatePrivateLjava_security_spec_KeySpec()
145 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_generatePublicLjava_security_spec_KeySpec()
152 StandardNames.getPublicKeySpecClass(keyfactAlgs[i])); in test_generatePublicLjava_security_spec_KeySpec()
237 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
244 StandardNames.getPrivateKeySpecClass(keyfactAlgs[i])); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
246 StandardNames.getPublicKeySpecClass(keyfactAlgs[i])); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
294 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_translateKeyLjava_security_Key()
DSignature2Test.java40 import libcore.java.security.StandardNames;
481 if (StandardNames.IS_RI) { in test_verify$BII()
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertificateTest.java63 import libcore.java.security.StandardNames;
463 if (StandardNames.IS_RI) { in getIssuerDN()
516 if (StandardNames.IS_RI) { in getSubjectDN()
614 if (StandardNames.IS_RI) { in getSigAlgName()
646 if (StandardNames.IS_RI) { in getSigAlgParams()
806 if (StandardNames.IS_RI) { in getOIDTestBytes()
923 if (StandardNames.IS_RI) { in getSubjectAlternativeNames_IPV6()
958 if (!StandardNames.IS_RI) { in getSubjectAlternativeNames_Other()
1176 if (StandardNames.IS_RI) {
1180 if (StandardNames.IS_RI) {
[all …]
DCertificateFactoryTest.java56 import libcore.java.security.StandardNames;
208 if (StandardNames.IS_RI) { in test_generateCertificate_AnyLineLength_Success()
387 if (StandardNames.IS_RI) { in testGenerateCertPath()
391 if (!StandardNames.IS_RI) { in testGenerateCertPath()
DX509CRLTest.java48 import libcore.java.security.StandardNames;
405 if (StandardNames.IS_RI) { in getSigAlgParams()
/libcore/luni/src/test/java/libcore/javax/crypto/
DSecretKeyFactoryTest.java26 import libcore.java.security.StandardNames;
195 if (!StandardNames.IS_RI) { in test_PBKDF2_8BIT()
DCipherTest.java61 import libcore.java.security.StandardNames;
69 private static final String[] RSA_PROVIDERS = ((StandardNames.IS_RI)
73 private static final String[] AES_PROVIDERS = ((StandardNames.IS_RI)
312 if (StandardNames.IS_RI) {
354 if (StandardNames.IS_RI) {
360 if (StandardNames.IS_RI) {
511 if (StandardNames.IS_RI) {
577 if (StandardNames.IS_RI) {
809 if (StandardNames.IS_RI) {
922 if (StandardNames.IS_RI) { in testCipher_getInstance_DelayedInitialization_KeyType()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSocketTest.java41 import libcore.java.security.StandardNames;
121 assertTrue(StandardNames.IS_RI); in testConstructor_InetAddressIInetAddressI()
123 assertFalse(StandardNames.IS_RI); in testConstructor_InetAddressIInetAddressI()
130 assertFalse(StandardNames.IS_RI); in testConstructor_InetAddressIInetAddressI()
418 private boolean useBKS = !StandardNames.IS_RI;
DSSLSessionTest.java20 import libcore.java.security.StandardNames;
97 for (String cipherSuite : StandardNames.CIPHER_SUITES_DEFAULT) { in test_getCipherSuite()
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertificateTest.java36 import libcore.java.security.StandardNames;
648 if (StandardNames.IS_RI) { in testVerifyMD2_chain()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java62 = new HashMap<String,Set<String>>(StandardNames.PROVIDER_ALGORITHMS); in test_Provider_getServices()
74 if (StandardNames.IS_RI && providerName.equals("BC")) { in test_Provider_getServices()
100 if (!(StandardNames.PROVIDER_ALGORITHMS.containsKey(type) in test_Provider_getServices()
101 && StandardNames.PROVIDER_ALGORITHMS.get(type).contains(algorithm))) { in test_Provider_getServices()
DSignatureTest.java130 if (StandardNames.IS_RI) { in testSignature_getInstance_DelayedInitialization_KeyType()
134 if (!StandardNames.IS_RI) { in testSignature_getInstance_DelayedInitialization_KeyType()
321 if (StandardNames.IS_RI && "NONEwithDSA".equalsIgnoreCase(sig.getAlgorithm())) { in test_Signature()
984 if (StandardNames.IS_RI) { in testSign_SHA1withRSA_CrtKeyWithPublicExponent_Success()
1603 if (StandardNames.IS_RI) { in testGetInstanceFromOID()
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java92 if (StandardNames.IS_RI) {
369 if (StandardNames.IS_RI) { in build()
640 if (StandardNames.IS_RI) { in createCertificate()
690 KeyStore keyStore = KeyStore.getInstance(StandardNames.KEY_STORE_ALGORITHM); in createKeyStore()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementTest.java47 import libcore.java.security.StandardNames;
761 if (StandardNames.IS_RI) { in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
765 if (!StandardNames.IS_RI) { in testKeyAgreement_getInstance_DelayedInitialization_KeyType()

12