/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SecurityTest.java | 181 * java.security.Security#getProvider(String) 186 assertNull(Security.getProvider("SOMEINCORRECTPROVIDERNAME")); 189 assertNull(Security.getProvider(null)); 197 assertSame(p, Security.getProvider(providerName)); 205 assertSame(p, Security.getProvider(p.getName()));
|
AlgorithmParameterGenerator2Test.java | 138 assertEquals("Incorrect provider", apG.getProvider(), mProv); 198 assertEquals("Incorrect provider", apG.getProvider().getName(), 244 assertEquals("Incorrect provider", apG.getProvider(), mProv);
|
ProviderServiceTest.java | 76 if (s.getProvider() != p) { 77 fail("getProvider() failed"); 164 assertTrue(s1.getProvider() == p); 169 assertTrue(s2.getProvider() == p);
|
/libcore/luni/src/test/java/tests/security/cert/ |
CertStore2Test.java | 92 assertEquals(CERT_STORE_PROVIDER_NAME, certStore.getProvider() 107 assertEquals(CERT_STORE_PROVIDER_NAME, certStore.getProvider() 163 assertSame(provider, certStore.getProvider()); 175 assertSame(provider, certStore.getProvider());
|
CertPathBuilder2Test.java | 132 assertEquals("Incorrect provider", cerPB.getProvider(), mProv); 196 assertEquals("Incorrect provider", cerPB.getProvider().getName(), 240 assertEquals("Incorrect provider", cerPB.getProvider(), mProv);
|
CertPathValidator2Test.java | 128 assertEquals("Incorrect provider", cerPV.getProvider(), mProv); 187 assertEquals("Incorrect provider", cerPV.getProvider().getName(), mProv.getName()); 228 assertEquals("Incorrect provider", cerPV.getProvider(), mProv);
|
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/ |
ExemptionMechanism_ImplTest.java | 173 assertEquals("Incorrect provider", exMech.getProvider(), mProv); 234 assertEquals("Incorrect provider", exMech.getProvider().getName(), 281 assertEquals("Incorrect provider", exMech.getProvider(), mProv);
|
KeyAgreement_ImplTest.java | 149 assertEquals("Incorrect provider", keyAgr.getProvider(), mProv); 213 assertEquals("Incorrect provider", keyAgr.getProvider().getName(), 261 assertEquals("Incorrect provider", keyAgr.getProvider(), mProv);
|
KeyGenerator_ImplTest.java | 153 assertEquals("Incorrect provider", keyGen.getProvider(), mProv); 217 assertEquals("Incorrect provider", keyGen.getProvider().getName(), 263 assertEquals("Incorrect provider", keyGen.getProvider(), mProv);
|
Mac_ImplTest.java | 152 assertEquals("Incorrect provider", keyAgr.getProvider(), mProv); 212 assertEquals("Incorrect provider", keyAgr.getProvider().getName(), 259 assertEquals("Incorrect provider", keyAgr.getProvider(), mProv);
|
SecretKeyFactory_ImplTest.java | 119 assertEquals("Incorrect provider", skf.getProvider(), mProv); 183 assertEquals("Incorrect provider", skf.getProvider().getName(), 229 assertEquals("Incorrect provider", skf.getProvider(), mProv);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
AlgorithmParameterGenerator2Test.java | 139 assertEquals("Incorrect provider", apG.getProvider(), mProv); 199 assertEquals("Incorrect provider", apG.getProvider().getName(), 245 assertEquals("Incorrect provider", apG.getProvider(), mProv);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
CertPathBuilder2Test.java | 140 assertEquals("Incorrect provider", cerPB.getProvider(), mProv); 204 assertEquals("Incorrect provider", cerPB.getProvider().getName(), 248 assertEquals("Incorrect provider", cerPB.getProvider(), mProv);
|
CertPathValidator2Test.java | 138 assertEquals("Incorrect provider", cerPV.getProvider(), mProv); 202 assertEquals("Incorrect provider", cerPV.getProvider().getName(), 247 assertEquals("Incorrect provider", cerPV.getProvider(), mProv);
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
KeyManagerFactory2Test.java | 152 assertEquals("Incorrect provider", keyMF.getProvider(), mProv); 218 assertEquals("Incorrect provider", keyMF.getProvider().getName(), 264 assertEquals("Incorrect provider", keyMF.getProvider(), mProv);
|
SSLContext2Test.java | 178 assertEquals("Incorrect provider", sslC.getProvider(), mProv); 243 assertEquals("Incorrect provider", sslC.getProvider().getName(), 290 assertEquals("Incorrect provider", sslC.getProvider(), mProv);
|
TrustManagerFactory2Test.java | 142 assertEquals("Incorrect provider", tmf.getProvider(), mProv); 208 assertEquals("Incorrect provider", tmf.getProvider().getName(), 254 assertEquals("Incorrect provider", tmf.getProvider(), mProv);
|
/libcore/luni/src/main/java/java/security/ |
Signature.java | 142 Provider p = Security.getProvider(provider); 193 public final Provider getProvider() { 660 return new SignatureImpl(spi, getProvider(), getAlgorithm());
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
KeyManagerFactory2Test.java | 147 assertEquals("Incorrect provider", keyMF.getProvider(), mProv); 213 assertEquals("Incorrect provider", keyMF.getProvider().getName(), 259 assertEquals("Incorrect provider", keyMF.getProvider(), mProv);
|
SSLContext2Test.java | 172 assertEquals("Incorrect provider", sslC.getProvider(), mProv); 236 assertEquals("Incorrect provider", sslC.getProvider().getName(), mProv.getName()); 282 assertEquals("Incorrect provider", sslC.getProvider(), mProv);
|
TrustManagerFactory2Test.java | 139 assertEquals("Incorrect provider", tmf.getProvider(), mProv); 205 assertEquals("Incorrect provider", tmf.getProvider().getName(), 251 assertEquals("Incorrect provider", tmf.getProvider(), mProv);
|
SSLContext1Test.java | 109 sslContext.getProvider()); 126 assertNull("Incorrect provider", sslContext.getProvider()); 324 defaultProvider, sslContext.getProvider()); 387 assertEquals("Invalid provider", defaultProvider, sslContext.getProvider()); 421 * javax.net.ssl.SSLContext#getProvider() 430 defaultProvider, sslContext.getProvider()); 433 defaultProvider, sslContext.getProvider()); 436 defaultProvider, sslContext.getProvider());
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
X509CRLTest.java | 215 if ("BC".equals(f.getProvider().getName())) { 219 if (!"BC".equals(f.getProvider().getName())) { 261 if ("BC".equals(f.getProvider().getName())) { 378 assertNull(f.getProvider().getName(), sigAlgParams); 380 assertNotNull(f.getProvider().getName(), sigAlgParams); 385 assertEquals(f.getProvider().getName(), Arrays.toString(expected), 403 assertNotNull(f.getProvider().getName(), params);
|
/libcore/luni/src/test/java/libcore/java/security/ |
KeyStoreTest.java | 138 assertEquals(provider, ks.getProvider()); 158 return (!(ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("SunJSSE"))); 172 return (StandardNames.IS_RI && ks.getProvider().getName().equals("BC")) 187 return (ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("BC")); 192 return (ks.getType().equals("PKCS12") && ks.getProvider().getName().equals("BC")); 207 return (ks.getProvider().getName().equals("BC")); 408 assertEquals(provider, ks.getProvider()); 446 Provider provider = Security.getProvider(providerName); 475 assertNotNull(ks.getProvider()); 476 assertNotNull(StandardNames.SECURITY_PROVIDER_NAME, ks.getProvider().getName()) [all...] |
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
MacTest.java | 219 assertEquals("Incorrect provider", mac.getProvider().getName(), 284 assertEquals("Incorrect provider", mac.getProvider(), defaultProvider); 547 assertEquals(mac1.getProvider(), macs[i].getProvider()); 763 assertEquals("Incorrect provider", mac.getProvider(), defaultProvider); 773 assertNull("Provider must be null", mac.getProvider());
|