Lines Matching defs:alias

57      * Returns the key associated with the given alias, using the given
59 * the alias by a call to <code>setKeyEntry</code>,
63 * @param alias the alias name
66 * @return the requested key, or null if the given alias does not exist
74 public abstract Key engineGetKey(String alias, char[] password)
78 * Returns the certificate chain associated with the given alias.
79 * The certificate chain must have been associated with the alias
84 * @param alias the alias name
87 * and the root certificate authority last), or null if the given alias
90 public abstract Certificate[] engineGetCertificateChain(String alias);
93 * Returns the certificate associated with the given alias.
95 * <p> If the given alias name identifies an entry
101 * <p> If the given alias name identifies an entry
108 * @param alias the alias name
110 * @return the certificate, or null if the given alias does not exist or
113 public abstract Certificate engineGetCertificate(String alias);
116 * Returns the creation date of the entry identified by the given alias.
118 * @param alias the alias name
120 * @return the creation date of this entry, or null if the given alias does
123 public abstract Date engineGetCreationDate(String alias);
126 * Assigns the given key to the given alias, protecting it with the given
133 * <p>If the given alias already exists, the keystore information
137 * @param alias the alias name
138 * @param key the key to be associated with the alias
147 public abstract void engineSetKeyEntry(String alias, Key key,
154 * alias.
161 * <p>If the given alias already exists, the keystore information
165 * @param alias the alias name
166 * @param key the key (in protected format) to be associated with the alias
173 public abstract void engineSetKeyEntry(String alias, byte[] key,
178 * Assigns the given certificate to the given alias.
180 * <p> If the given alias identifies an existing entry
187 * @param alias the alias name
190 * @exception KeyStoreException if the given alias already exists and does
194 public abstract void engineSetCertificateEntry(String alias,
199 * Deletes the entry identified by the given alias from this keystore.
201 * @param alias the alias name
205 public abstract void engineDeleteEntry(String alias)
209 * Lists all the alias names of this keystore.
211 * @return enumeration of the alias names
216 * Checks if the given alias exists in this keystore.
218 * @param alias the alias name
220 * @return true if the alias exists, false otherwise
222 public abstract boolean engineContainsAlias(String alias);
232 * Returns true if the entry identified by the given alias
237 * @param alias the alias for the keystore entry to be checked
239 * @return true if the entry identified by the given alias is a
242 public abstract boolean engineIsKeyEntry(String alias);
245 * Returns true if the entry identified by the given alias
250 * @param alias the alias for the keystore entry to be checked
252 * @return true if the entry identified by the given alias contains a
255 public abstract boolean engineIsCertificateEntry(String alias);
258 * Returns the (alias) name of the first keystore entry whose certificate
277 * @return the alias name of the first entry with matching certificate,
422 * Gets a <code>KeyStore.Entry</code> for the specified alias
425 * @param alias get the <code>KeyStore.Entry</code> for this alias
430 * @return the <code>KeyStore.Entry</code> for the specified alias,
445 public KeyStore.Entry engineGetEntry(String alias,
450 if (!engineContainsAlias(alias)) {
455 if (engineIsCertificateEntry(alias)) {
457 (engineGetCertificate(alias));
465 if (engineIsCertificateEntry(alias)) {
468 } else if (engineIsKeyEntry(alias)) {
473 Key key = engineGetKey(alias, password);
475 Certificate[] chain = engineGetCertificateChain(alias);
487 * Saves a <code>KeyStore.Entry</code> under the specified alias.
491 * <p> If an entry already exists for the specified alias,
494 * @param alias save the <code>KeyStore.Entry</code> under this alias
504 public void engineSetEntry(String alias, KeyStore.Entry entry,
527 engineSetCertificateEntry(alias, tce.getTrustedCertificate());
537 (alias,
550 (alias,
564 * <code>alias</code> is an instance or subclass of the specified
567 * @param alias the alias name
571 * <code>alias</code> is an instance or subclass of the
577 engineEntryInstanceOf(String alias,
581 return engineIsCertificateEntry(alias);
584 return engineIsKeyEntry(alias) &&
585 engineGetCertificate(alias) != null;
588 return engineIsKeyEntry(alias) &&
589 engineGetCertificate(alias) == null;