/libcore/ojluni/src/main/resources/sun/nio/cs/ |
D | standard-charsets | 45 alias iso-ir-6 46 alias ANSI_X3.4-1986 47 alias ISO_646.irv:1991 48 alias ASCII 49 alias ISO646-US 50 alias us 51 alias IBM367 52 alias cp367 53 alias csASCII 54 alias default [all …]
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MyKeyStore.java | 63 public Key engineGetKey(String alias, char[] password) in engineGetKey() argument 65 if (Keys.containsKey(alias)) { in engineGetKey() 66 return (Key) Keys.get(alias); in engineGetKey() 71 public Certificate[] engineGetCertificateChain(String alias) { in engineGetCertificateChain() argument 72 if (Chain.containsKey(alias)) { in engineGetCertificateChain() 73 return (Certificate[]) Chain.get(alias); in engineGetCertificateChain() 78 public Certificate engineGetCertificate(String alias) { in engineGetCertificate() argument 79 if (Cert.containsKey(alias)) { in engineGetCertificate() 80 return (Certificate) Cert.get(alias); in engineGetCertificate() 85 public Date engineGetCreationDate(String alias) { in engineGetCreationDate() argument [all …]
|
D | TestKeyStoreSpi.java | 68 public boolean engineContainsAlias(String alias) { in engineContainsAlias() argument 69 return aliases.containsKey(alias); in engineContainsAlias() 73 public void engineDeleteEntry(String alias) throws KeyStoreException { in engineDeleteEntry() argument 74 throw new KeyStoreException("entry " + alias + " cannot be deleted"); in engineDeleteEntry() 78 public Certificate engineGetCertificate(String alias) { in engineGetCertificate() argument 79 return (Certificate) aliases.get(alias); in engineGetCertificate() 88 for (Map.Entry<String, Object> alias : aliases.entrySet()) { in engineGetCertificateAlias() 89 if (alias.getValue() == cert) { in engineGetCertificateAlias() 90 return alias.getKey(); in engineGetCertificateAlias() 98 public Certificate[] engineGetCertificateChain(String alias) { in engineGetCertificateChain() argument [all …]
|
D | MyKeyStoreSpi.java | 48 public Key engineGetKey(String alias, char[] password) in engineGetKey() argument 53 public Certificate[] engineGetCertificateChain(String alias) { in engineGetCertificateChain() argument 57 public Certificate engineGetCertificate(String alias) { in engineGetCertificate() argument 58 if (alias.equals("test_engineEntryInstanceOf_Alias1")) { in engineGetCertificate() 64 public Date engineGetCreationDate(String alias) { in engineGetCreationDate() argument 68 public void engineSetKeyEntry(String alias, Key key, char[] password, in engineSetKeyEntry() argument 74 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) in engineSetKeyEntry() argument 80 public void engineSetCertificateEntry(String alias, Certificate cert) in engineSetCertificateEntry() argument 86 public void engineDeleteEntry(String alias) throws KeyStoreException { in engineDeleteEntry() argument 95 public boolean engineContainsAlias(String alias) { in engineContainsAlias() argument [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyStoreSpi.java | 75 public abstract Key engineGetKey(String alias, char[] password) in engineGetKey() argument 91 public abstract Certificate[] engineGetCertificateChain(String alias); in engineGetCertificateChain() argument 114 public abstract Certificate engineGetCertificate(String alias); in engineGetCertificate() argument 124 public abstract Date engineGetCreationDate(String alias); in engineGetCreationDate() argument 148 public abstract void engineSetKeyEntry(String alias, Key key, in engineSetKeyEntry() argument 174 public abstract void engineSetKeyEntry(String alias, byte[] key, in engineSetKeyEntry() argument 195 public abstract void engineSetCertificateEntry(String alias, in engineSetCertificateEntry() argument 206 public abstract void engineDeleteEntry(String alias) in engineDeleteEntry() argument 223 public abstract boolean engineContainsAlias(String alias); in engineContainsAlias() argument 243 public abstract boolean engineIsKeyEntry(String alias); in engineIsKeyEntry() argument [all …]
|
D | KeyStore.java | 1055 public final Key getKey(String alias, char[] password) in getKey() argument 1062 return keyStoreSpi.engineGetKey(alias, password); in getKey() 1081 public final Certificate[] getCertificateChain(String alias) in getCertificateChain() argument 1087 return keyStoreSpi.engineGetCertificateChain(alias); in getCertificateChain() 1114 public final Certificate getCertificate(String alias) in getCertificate() argument 1120 return keyStoreSpi.engineGetCertificate(alias); in getCertificate() 1134 public final Date getCreationDate(String alias) in getCreationDate() argument 1140 return keyStoreSpi.engineGetCreationDate(alias); in getCreationDate() 1166 public final void setKeyEntry(String alias, Key key, char[] password, in setKeyEntry() argument 1179 keyStoreSpi.engineSetKeyEntry(alias, key, password, chain); in setKeyEntry() [all …]
|
D | Provider.java | 1173 for (String alias : s.getAliases()) { in putService() 1174 serviceMap.put(new ServiceKey(type, alias, true), s); in putService() 1188 for (String alias : s.getAliases()) { in putPropertyStrings() 1189 super.put(ALIAS_PREFIX + type + "." + alias, algorithm); in putPropertyStrings() 1210 for (String alias : s.getAliases()) { in removePropertyStrings() 1211 super.remove(ALIAS_PREFIX + type + "." + alias); in removePropertyStrings() 1275 for (String alias : s.getAliases()) { in implRemoveService() 1276 serviceMap.remove(new ServiceKey(type, alias, false)); in implRemoveService() 1468 private void addAlias(String alias) { in addAlias() argument 1472 aliases.add(alias); in addAlias()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestKeyManager.java | 115 private String dumpAlias(String alias) { in dumpAlias() argument 117 out.println(alias); in dumpAlias() 118 return alias; in dumpAlias() 121 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument 124 out.print(alias); in getCertificateChain() 125 return dumpCerts(keyManager.getCertificateChain(alias)); in getCertificateChain() 158 for (String alias : aliases) { in dumpAliases() 159 out.print(alias); in dumpAliases() 166 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument 169 out.print(alias); in getPrivateKey() [all …]
|
D | ForwardingX509ExtendedKeyManager.java | 48 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument 49 return delegate.getCertificateChain(alias); in getCertificateChain() 73 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument 74 return delegate.getPrivateKey(alias); in getPrivateKey()
|
D | RandomPrivateKeyX509ExtendedKeyManager.java | 45 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument 46 PrivateKey originalPrivateKey = super.getPrivateKey(alias); in getPrivateKey()
|
D | TestSSLContext.java | 334 for (String alias: Collections.list(keyStore.aliases())) { in assertCertificateInKeyStore() 335 if (!keyStore.isCertificateEntry(alias)) { in assertCertificateInKeyStore() 338 X509Certificate keyStoreCertificate = (X509Certificate) keyStore.getCertificate(alias); in assertCertificateInKeyStore() 350 for (String alias: Collections.list(keyStore.aliases())) { in assertCertificateInKeyStore() 351 if (!keyStore.isCertificateEntry(alias)) { in assertCertificateInKeyStore() 354 Certificate keyStoreCertificate = keyStore.getCertificate(alias); in assertCertificateInKeyStore()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStoreTest.java | 152 String alias = "keyEntry"; in testSetKeyEntry() local 156 new KeyStoreTestSupport.MCertificate(alias, kk), in testSetKeyEntry() 157 new KeyStoreTestSupport.MCertificate(alias, kk) }; in testSetKeyEntry() 165 kss[i].setKeyEntry(alias, kk, certs); in testSetKeyEntry() 166 res = kss[i].getKey(alias, pwd).getEncoded(); in testSetKeyEntry() 171 assertEquals(kss[i].getCertificateChain(alias).length, certs.length); in testSetKeyEntry() 172 kss[i].setKeyEntry(alias, kk, null); in testSetKeyEntry() 173 res = kss[i].getKey(alias, pwd).getEncoded(); in testSetKeyEntry() 178 assertNull(kss[i].getCertificateChain(alias)); in testSetKeyEntry() 259 String alias = "alias"; in testEngineEntryInstanceOf() local [all …]
|
D | KeyStore2Test.java | 299 String alias = keyTest.getCertificateAlias(cert[1]); in test_getCertificateAliasLjava_security_cert_Certificate() local 301 "alias1", alias); in test_getCertificateAliasLjava_security_cert_Certificate() 306 alias = keyTest.getCertificateAlias(cert[0]); in test_getCertificateAliasLjava_security_cert_Certificate() 308 "alias2", alias); in test_getCertificateAliasLjava_security_cert_Certificate() 884 String alias = "alias"; in test_entryInstanceOf() local 888 keyStore.setKeyEntry(alias, getPrivateKey(), "pwd".toCharArray(), chain); in test_entryInstanceOf() 889 assertTrue(keyStore.entryInstanceOf(alias, KeyStore.PrivateKeyEntry.class)); in test_entryInstanceOf() 890 assertFalse(keyStore.entryInstanceOf(alias, KeyStore.SecretKeyEntry.class)); in test_entryInstanceOf() 891 assertFalse(keyStore.entryInstanceOf(alias, KeyStore.TrustedCertificateEntry.class)); in test_entryInstanceOf()
|
D | KeyStore4Test.java | 250 String alias = keyStore.getCertificateAlias(TestKeyStoreSpi.CERT); in testGetCertificateAlias() local 251 assertNotNull("alias is null", alias); in testGetCertificateAlias() 252 assertEquals("alias is not expected", "certalias", alias); in testGetCertificateAlias()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | CRLExtensions.java | 183 public Extension get(String alias) { in get() argument 184 X509AttributeName attr = new X509AttributeName(alias); in get() 188 int index = alias.lastIndexOf("."); in get() 189 name = alias.substring(index + 1); in get() 191 name = alias; in get() 202 public void set(String alias, Object obj) { in set() argument 203 map.put(alias, (Extension)obj); in set() 211 public void delete(String alias) { in delete() argument 212 map.remove(alias); in delete()
|
D | AlgorithmId.java | 590 String alias = (String)enum_.nextElement(); in reinitializeMappingTableLocked() local 591 String upperCaseAlias = alias.toUpperCase(Locale.ENGLISH); in reinitializeMappingTableLocked() 596 if (index == alias.length()) { in reinitializeMappingTableLocked() 600 String oidString = alias.substring(index); in reinitializeMappingTableLocked() 601 String stdAlgName = provs[i].getProperty(alias); in reinitializeMappingTableLocked() 624 final int sep = alias.indexOf('.', "ALG.ALIAS.".length()); in reinitializeMappingTableLocked() 625 String suffix = alias.substring(sep + 1); in reinitializeMappingTableLocked() 635 String stdAlgName = provs[i].getProperty(alias); in reinitializeMappingTableLocked()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | AnchorCertificates.java | 62 String alias; in AccessController.doPrivileged() 64 alias = list.nextElement(); in AccessController.doPrivileged() 66 if (alias.contains(" [jdk")) { in AccessController.doPrivileged() 68 .getCertificate(alias); in AccessController.doPrivileged()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | TestKeyStore.java | 833 for (String alias : Collections.list(keyStore.aliases())) { in privateKey() 834 if (!keyStore.entryInstanceOf(alias, PrivateKeyEntry.class)) { in privateKey() 837 PrivateKeyEntry privateKey = (PrivateKeyEntry) keyStore.getEntry(alias, password); in privateKey() 888 for (String alias : Collections.list(keyStore.aliases())) { in issuer() 889 if (!keyStore.entryInstanceOf(alias, TrustedCertificateEntry.class)) { in issuer() 893 (TrustedCertificateEntry) keyStore.getEntry(alias, null); in issuer() 980 for (String alias : Collections.list(keyStore.aliases())) { in rootCertificate() 981 if (!keyStore.entryInstanceOf(alias, TrustedCertificateEntry.class)) { in rootCertificate() 985 (TrustedCertificateEntry) keyStore.getEntry(alias, null); in rootCertificate() 1017 public KeyStore.Entry getEntryByAlias(String alias) { in getEntryByAlias() argument [all …]
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | X509KeyManager.java | 125 public X509Certificate[] getCertificateChain(String alias); in getCertificateChain() argument 133 public PrivateKey getPrivateKey(String alias); in getPrivateKey() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | X509KeyManagerTest.java | 742 for (String alias : aliases) { in assertKnownAliases() 743 assertKnownAlias(alias); in assertKnownAliases() 747 private void assertKnownAlias(String alias) { in assertKnownAlias() argument 748 String a = alias.toLowerCase(); in assertKnownAlias() 750 … assertTrue("Expected one of clientkey_01, clientkey_02, clientkey_03. Received: " + alias, okay); in assertKnownAlias()
|
D | X509ExtendedKeyManagerTest.java | 149 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument 172 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | CodeSourceTest.java | 63 String alias = aliases.nextElement(); in createCodeSigner() local 64 Certificate certificate = keyStore.getCertificate(alias); in createCodeSigner()
|
D | ProtectionDomainTest.java | 95 String alias = aliases.nextElement(); in createCodeSigner() local 96 Certificate certificate = keyStore.getCertificate(alias); in createCodeSigner()
|
/libcore/tools/docs/crypto/src/java/libcore/java/security/ |
D | ListProviders.java | 129 for (String alias : KNOWN_ALIASES) { in main() 130 if (p.containsKey(alias)) { in main() 131 String[] elements = alias.split("\\."); // Split takes a regex in main()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | PKIXParameters.java | 150 String alias = aliases.nextElement(); in PKIXParameters() local 151 if (keystore.isCertificateEntry(alias)) { in PKIXParameters() 152 Certificate cert = keystore.getCertificate(alias); in PKIXParameters()
|