Lines Matching defs:alias

88      * Hash entries are keyed by alias names.
93 * Returns the key associated with the given alias, using the given
96 * @param alias the alias name
99 * @return the requested key, or null if the given alias does not exist
107 public Key engineGetKey(String alias, char[] password)
112 Object entry = entries.get(alias.toLowerCase());
141 * Returns the certificate chain associated with the given alias.
143 * @param alias the alias name
146 * and the root certificate authority last), or null if the given alias
148 * alias identifies either a <i>trusted certificate entry</i> or a
151 public Certificate[] engineGetCertificateChain(String alias)
155 Object entry = entries.get(alias.toLowerCase());
166 * Returns the certificate associated with the given alias.
168 * <p>If the given alias name identifies a
170 * entry is returned. If the given alias name identifies a
175 * @param alias the alias name
177 * @return the certificate, or null if the given alias does not exist or
180 public Certificate engineGetCertificate(String alias) {
183 Object entry = entries.get(alias.toLowerCase());
198 * Returns the creation date of the entry identified by the given alias.
200 * @param alias the alias name
202 * @return the creation date of this entry, or null if the given alias does
205 public Date engineGetCreationDate(String alias) {
208 Object entry = entries.get(alias.toLowerCase());
226 * Assigns the given key to the given alias, protecting it with the given
233 * <p>If the given alias already exists, the keystore information
237 * @param alias the alias name
238 * @param key the key to be associated with the alias
247 public void engineSetKeyEntry(String alias, Key key, char[] password,
271 entries.put(alias.toLowerCase(), entry);
279 entries.put(alias.toLowerCase(), entry);
290 * alias.
297 * <p>If the given alias already exists, the keystore information
301 * @param alias the alias name
302 * @param key the key (in protected format) to be associated with the alias
309 public void engineSetKeyEntry(String alias, byte[] key,
327 entries.put(alias.toLowerCase(), entry);
332 * Assigns the given certificate to the given alias.
334 * <p>If the given alias already exists in this keystore and identifies a
338 * @param alias the alias name
341 * @exception KeyStoreException if the given alias already exists and does
345 public void engineSetCertificateEntry(String alias, Certificate cert)
350 Object entry = entries.get(alias.toLowerCase());
363 entries.put(alias.toLowerCase(), trustedCertEntry);
368 * Deletes the entry identified by the given alias from this keystore.
370 * @param alias the alias name
374 public void engineDeleteEntry(String alias)
378 entries.remove(alias.toLowerCase());
383 * Lists all the alias names of this keystore.
385 * @return enumeration of the alias names
392 * Checks if the given alias exists in this keystore.
394 * @param alias the alias name
396 * @return true if the alias exists, false otherwise
398 public boolean engineContainsAlias(String alias) {
399 return entries.containsKey(alias.toLowerCase());
412 * Returns true if the entry identified by the given alias is a
415 * @return true if the entry identified by the given alias is a
418 public boolean engineIsKeyEntry(String alias) {
421 Object entry = entries.get(alias.toLowerCase());
431 * Returns true if the entry identified by the given alias is a
434 * @return true if the entry identified by the given alias is a
437 public boolean engineIsCertificateEntry(String alias) {
439 Object entry = entries.get(alias.toLowerCase());
447 * Returns the (alias) name of the first keystore entry whose certificate
459 * @return the (alias) name of the first entry with matching certificate,
467 String alias = (String)e.nextElement();
468 Object entry = entries.get(alias);
478 return alias;
512 * alias (UTF string)
525 * alias (UTF string)
535 * alias (UTF string)
566 String alias = (String)e.nextElement();
567 Object entry = entries.get(alias);
576 // write the alias
577 dos.writeUTF(alias);
606 // write the alias
607 dos.writeUTF(alias);
623 // write the alias
624 dos.writeUTF(alias);
724 String alias;
732 // read the alias
733 alias = dis.readUTF();
786 entries.put(alias, entry);
792 // read the alias
793 alias = dis.readUTF();
825 entries.put(alias, entry);
831 // read the alias
832 alias = dis.readUTF();
848 entries.put(alias, entry);