Home
last modified time | relevance | path

Searched refs:aliases (Results 1 – 24 of 24) sorted by relevance

/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestKeyStoreSpi.java29 Map<String, Object> aliases = new HashMap<String, Object>(); field in TestKeyStoreSpi
56 aliases.put("certalias", CERT); in TestKeyStoreSpi()
57 aliases.put("chainalias", CERTCHAIN); in TestKeyStoreSpi()
58 aliases.put("keyalias", KEY); in TestKeyStoreSpi()
59 aliases.put("unknownalias", DUMMY); in TestKeyStoreSpi()
64 return Collections.enumeration(aliases.keySet()); in engineAliases()
69 return aliases.containsKey(alias); in engineContainsAlias()
79 return (Certificate) aliases.get(alias); in engineGetCertificate()
88 for (Map.Entry<String, Object> alias : aliases.entrySet()) { in engineGetCertificateAlias()
99 return (Certificate[]) aliases.get(alias); in engineGetCertificateChain()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DAbstractCharsetTestCase.java35 protected final String[] aliases; field in AbstractCharsetTestCase
68 String[] aliases, boolean canEncode, boolean isRegistered) { in AbstractCharsetTestCase() argument
73 this.aliases = aliases; in AbstractCharsetTestCase()
104 for (int i = 0; i < this.aliases.length; i++) { in testAliases()
105 Charset c = Charset.forName(this.aliases[i]); in testAliases()
DCharsetTest.java91 … System.err.println("isRegistered was false for " + name + " " + cs.name() + " " + cs.aliases()); in test_isRegistered()
93 …assertTrue("isRegistered was false for " + name + " " + cs.name() + " " + cs.aliases(), cs.isRegis… in test_isRegistered()
98 …assertFalse("isRegistered was true for " + name + " " + cs.name() + " " + cs.aliases(), cs.isRegis… in test_isRegistered()
428 assertEquals("mock", c.aliases().toArray()[0]); in testConstructor_Normal()
429 assertEquals(1, c.aliases().toArray().length); in testConstructor_Normal()
474 assertEquals(0, c.aliases().toArray().length); in testConstructor_NullAliases()
490 assertEquals(0, c.aliases().toArray().length); in testConstructor_NoAliases()
527 assertEquals(3, c.aliases().size()); in testAliases_Multiple()
528 assertTrue(c.aliases().contains("mock")); in testAliases_Multiple()
529 assertTrue(c.aliases().contains(mockName)); in testAliases_Multiple()
[all …]
DCharsetEncoder2Test.java123 public MockMalfunctionCharset(String canonicalName, String[] aliases) { in MockMalfunctionCharset() argument
124 super(canonicalName, aliases); in MockMalfunctionCharset()
DCharsetDecoder2Test.java133 public MockMalfunctionCharset(String canonicalName, String[] aliases) { in MockMalfunctionCharset() argument
134 super(canonicalName, aliases); in MockMalfunctionCharset()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStoreBuilderTest.java299 for (Enumeration<String> aliases = ks.aliases(); aliases.hasMoreElements(); ) { in testNewInstanceStringProviderFileProtectionParameter()
300 String aName = aliases.nextElement(); in testNewInstanceStringProviderFileProtectionParameter()
320 for (Enumeration<String> aliases = ks1.aliases(); aliases.hasMoreElements(); ) { in testNewInstanceStringProviderFileProtectionParameter()
321 String aName = aliases.nextElement(); in testNewInstanceStringProviderFileProtectionParameter()
353 for (Enumeration<String> aliases = ks.aliases(); aliases.hasMoreElements();) { in testNewInstanceStringProviderFileProtectionParameter()
354 String aName = aliases.nextElement(); in testNewInstanceStringProviderFileProtectionParameter()
364 for (Enumeration<String> iter = ks1.aliases(); iter.hasMoreElements();) { in testNewInstanceStringProviderFileProtectionParameter()
DProviderServiceTest.java208 String className, List<String> aliases, in MyService() argument
210 super(provider, type, algorithm, className, aliases, attributes); in MyService()
DKeyStore2Test.java175 keyTest.aliases(); in test_aliases()
194 Enumeration<String> aliase = keyTest.aliases(); in test_aliases()
/libcore/luni/src/main/java/java/security/
DProvider.java489 if (s.aliases != null) { in putService()
517 if (aliasTable != null && s.aliases != null) { in removeService()
530 if (s.aliases != null) { in serviceInfoToProperties()
531 for (Iterator<String> i = s.aliases.iterator(); i.hasNext();) { in serviceInfoToProperties()
552 if (s.aliases != null) { in serviceInfoFromProperties()
553 for (Iterator<String> i = s.aliases.iterator(); i.hasNext();) { in serviceInfoFromProperties()
595 if (s.aliases.contains(aliasName)) { in removeFromPropertyServiceTable()
596 s.aliases.remove(aliasName); in removeFromPropertyServiceTable()
615 && ser.aliases != null) { in removeFromPropertyServiceTable()
616 for (String alias : ser.aliases) { in removeFromPropertyServiceTable()
[all …]
DKeyStore.java422 public final Enumeration<String> aliases() throws KeyStoreException { in aliases() method in KeyStore
/libcore/luni/src/main/java/java/nio/charset/
DCharsetICU.java17 protected CharsetICU(String canonicalName, String icuCanonName, String[] aliases) { in CharsetICU() argument
18 super(canonicalName, aliases); in CharsetICU()
DCharset.java177 protected Charset(String canonicalName, String[] aliases) { in Charset() argument
184 if (aliases != null) { in Charset()
185 for (String alias : aliases) { in Charset()
389 public final Set<String> aliases() { in aliases() method in Charset
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DKeyManagerFactoryTest.java162 String[] aliases = km.getClientAliases(keyType, null); in test_X509KeyManager() local
164 assertNull(keyType, aliases); in test_X509KeyManager()
167 assertNotNull(keyType, aliases); in test_X509KeyManager()
168 for (String alias : aliases) { in test_X509KeyManager()
173 String[] aliases = km.getServerAliases(keyType, null); in test_X509KeyManager() local
175 assertNull(keyType, aliases); in test_X509KeyManager()
178 assertNotNull(keyType, aliases); in test_X509KeyManager()
179 for (String alias : aliases) { in test_X509KeyManager()
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidLocaleTest.java166 Set<String> aliases = cs.aliases(); in testICUConverters() local
167 System.out.println(cs.name() + ": " + aliases); in testICUConverters()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestKeyManager.java157 private String[] dumpAliases(String[] aliases) { in dumpAliases() argument
159 for (String alias : aliases) { in dumpAliases()
164 return aliases; in dumpAliases()
DTestSSLContext.java225 for (String alias: Collections.list(keyStore.aliases())) { in assertCertificateInKeyStore()
241 for (String alias: Collections.list(keyStore.aliases())) { in assertCertificateInKeyStore()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DX509KeyManagerImpl.java122 Enumeration<String> aliase = keyTest.aliases(); in getClientAliases()
166 Enumeration<String> aliase = keyTest.aliases(); in getServerAliases()
/libcore/luni/src/main/native/
Dlibcore_icu_NativeConverter.cpp580 std::vector<std::string> aliases; in NativeConverter_charsetForName() local
581 if (!collectStandardNames(env, icuCanonicalName, "IANA", aliases)) { in NativeConverter_charsetForName()
584 if (!collectStandardNames(env, icuCanonicalName, "MIME", aliases)) { in NativeConverter_charsetForName()
587 if (!collectStandardNames(env, icuCanonicalName, "JAVA", aliases)) { in NativeConverter_charsetForName()
590 if (!collectStandardNames(env, icuCanonicalName, "WINDOWS", aliases)) { in NativeConverter_charsetForName()
593 jobjectArray javaAliases = toStringArray(env, aliases); in NativeConverter_charsetForName()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DX509KeyManagerTest.java741 private void assertKnownAliases(String[] aliases) { in assertKnownAliases() argument
742 for (String alias : aliases) { in assertKnownAliases()
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java717 for (String alias : Collections.list(keyStore.aliases())) { in privateKey()
772 for (String alias : Collections.list(keyStore.aliases())) { in issuer()
817 for (String alias : Collections.list(keyStore.aliases())) { in rootCertificate()
885 for (String alias : Collections.list(src.aliases())) { in copySelfSignedCertificates()
908 for (String alias : Collections.list(src.aliases())) { in copyCertificate()
942 for (String alias : Collections.list(keyStore.aliases())) { in dump()
/libcore/luni/src/test/java/libcore/java/security/
DKeyStoreTest.java295 Enumeration<String> aliases = ks.aliases(); in clearKeyStore() local
296 while (aliases.hasMoreElements()) { in clearKeyStore()
297 String alias = aliases.nextElement(); in clearKeyStore()
1200 Collections.list(keyStore.aliases()).contains(ALIAS_CERTIFICATE)); in test_KeyStore_setCertificateEntry()
1381 keyStore.aliases(); in test_KeyStore_aliases()
1391 keyStore.aliases()); in test_KeyStore_aliases()
1394 keyStore.aliases().hasMoreElements()); in test_KeyStore_aliases()
1397 new HashSet(Collections.list(keyStore.aliases()))); in test_KeyStore_aliases()
1422 keyStore.aliases()); in test_KeyStore_aliases()
1424 assertTrue(keyStore.aliases().hasMoreElements()); in test_KeyStore_aliases()
[all …]
DProviderTest.java181 Map<String,String> aliases = new HashMap<String,String>(); in test_Provider_Properties() local
204 aliases.put(key, type + "." + value); in test_Provider_Properties()
227 for (Entry<String,String> entry : aliases.entrySet()) { in test_Provider_Properties()
/libcore/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java71 assertTrue("keystore is empty", keyStore.aliases() in testKeyStoreLoad()
/libcore/luni/src/main/java/java/security/cert/
DPKIXParameters.java113 for (Enumeration i = keyStore.aliases(); i.hasMoreElements();) { in PKIXParameters()