/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 68 public static final boolean IS_RI field in StandardNames 70 public static final String JSSE_PROVIDER_NAME = (IS_RI) ? "SunJSSE" : "AndroidOpenSSL"; 71 public static final String SECURITY_PROVIDER_NAME = (IS_RI) ? "SUN" : "BC"; 73 public static final String KEY_MANAGER_FACTORY_DEFAULT = (IS_RI) ? "SunX509" : "PKIX"; 76 public static final String KEY_STORE_ALGORITHM = (IS_RI) ? "JKS" : "BKS"; 282 if (IS_RI) { 327 if (IS_RI) { 333 if (IS_RI) { 341 if (!IS_RI) { 559 if (IS_RI) { [all …]
|
D | TestKeyStore.java | 92 if (StandardNames.IS_RI) { 369 if (StandardNames.IS_RI) { in build() 640 if (StandardNames.IS_RI) { in createCertificate()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLContext.java | 53 private static final boolean IS_RI = StandardNames.IS_RI; field in TestSSLContext 54 public static final int EXPECTED_DEFAULT_CLIENT_SSL_SESSION_CACHE_SIZE = (IS_RI) ? 0 : 10; 55 public static final int EXPECTED_DEFAULT_SERVER_SSL_SESSION_CACHE_SIZE = (IS_RI) ? 0 : 100; 57 (IS_RI) ? 24 * 3600 : 8 * 3600;
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | X509CertificateTest.java | 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) { 1206 if (StandardNames.IS_RI) { [all …]
|
D | CertificateFactoryTest.java | 208 if (StandardNames.IS_RI) { in test_generateCertificate_AnyLineLength_Success() 387 if (StandardNames.IS_RI) { in testGenerateCertPath() 391 if (!StandardNames.IS_RI) { in testGenerateCertPath()
|
D | X509CRLTest.java | 405 if (StandardNames.IS_RI) { in getSigAlgParams()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSocketTest.java | 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;
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLEngineTest.java | 178 if (StandardNames.IS_RI && "TLSv1.2".equals(c.clientContext.getProtocol()) 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);
|
D | SSLSocketTest.java | 120 boolean errorExpected = StandardNames.IS_RI && cipherSuite.endsWith("_SHA256"); 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() 1098 assertFalse(StandardNames.IS_RI); in test_SSLSocket_close() 1171 if (StandardNames.IS_RI) { in test_SSLSocket_setSoTimeout_wrapper() 1198 if (StandardNames.IS_RI) { in test_SSLSocket_setSoWriteTimeout() 1261 if (StandardNames.IS_RI) { in test_SSLSocket_reusedNpnSocket() [all …]
|
D | TrustManagerFactoryTest.java | 58 return (StandardNames.IS_RI && algorithm.equals("PKIX")); in supportsManagerFactoryParameters() 151 = issuers.length > (StandardNames.IS_RI ? 1 : 2) * KEY_TYPES.length; in test_X509TrustManager()
|
D | SSLContextTest.java | 508 if (!StandardNames.IS_RI && in test_SSLContext_getServerSessionContext() 525 if (!StandardNames.IS_RI && in test_SSLContext_getClientSessionContext() 542 assertEquals(StandardNames.IS_RI, testContext.serverStorePassword != null); in test_SSLContextTest_TestSSLContext_create()
|
D | SSLSocketFactoryTest.java | 173 if (!StandardNames.IS_RI) { in test_SSLSocketFactory_getDefault_cacheInvalidate()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherTest.java | 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() 926 if (!StandardNames.IS_RI) { in testCipher_getInstance_DelayedInitialization_KeyType() [all …]
|
D | SecretKeyFactoryTest.java | 195 if (!StandardNames.IS_RI) { in test_PBKDF2_8BIT()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 130 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()
|
D | KeyPairGeneratorTest.java | 268 if (StandardNames.IS_RI && expectedAlgorithm.equals("DIFFIEHELLMAN")) { in test_Key()
|
D | ProviderTest.java | 74 if (StandardNames.IS_RI && providerName.equals("BC")) { in test_Provider_getServices()
|
D | KeyStoreTest.java | 204 return (StandardNames.IS_RI && ks.getProvider().getName().equals("BC")) in isUnsupported() 2484 if (StandardNames.IS_RI) { in test_KeyStore_cacerts()
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
D | CertificateTest.java | 648 if (StandardNames.IS_RI) { in testVerifyMD2_chain()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | KeyAgreementTest.java | 761 if (StandardNames.IS_RI) { in testKeyAgreement_getInstance_DelayedInitialization_KeyType() 765 if (!StandardNames.IS_RI) { in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
|
D | MacTest.java | 957 if (StandardNames.IS_RI) { in testMac_getInstance_DelayedInitialization_KeyType() 961 if (!StandardNames.IS_RI) { in testMac_getInstance_DelayedInitialization_KeyType()
|
D | CipherTest.java | 550 assertTrue(StandardNames.IS_RI); in testDoFinalbyteArrayintintbyteArrayint() 552 assertFalse(StandardNames.IS_RI); in testDoFinalbyteArrayintintbyteArrayint()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | Signature2Test.java | 481 if (StandardNames.IS_RI) { in test_verify$BII()
|
D | KeyStore2Test.java | 821 assertFalse(StandardNames.IS_RI); // BKS KeyStore does not require a password in test_setEntry() 823 assertTrue(StandardNames.IS_RI); // JKS KeyStore requires a password in test_setEntry()
|