Lines Matching refs:alias

40      * Returns the key with the given alias, using the password to recover the
43 * @param alias
44 * the alias for the entry.
47 * @return the key with the specified alias, or {@code null} if the
48 * specified alias is not bound to an entry.
54 public abstract Key engineGetKey(String alias, char[] password)
58 * Returns the certificate chain for the entry with the given alias.
60 * @param alias
61 * the alias for the entry
62 * @return the certificate chain for the entry with the given alias, or
63 * {@code null} if the specified alias is not bound to an entry.
65 public abstract Certificate[] engineGetCertificateChain(String alias);
68 * Returns the trusted certificate for the entry with the given alias.
70 * @param alias
71 * the alias for the entry.
72 * @return the trusted certificate for the entry with the given alias, or
73 * {@code null} if the specified alias is not bound to an entry.
75 public abstract Certificate engineGetCertificate(String alias);
78 * Returns the creation date of the entry with the given alias.
80 * @param alias
81 * the alias for the entry.
82 * @return the creation date, or {@code null} if the specified alias is not
85 public abstract Date engineGetCreationDate(String alias);
88 * Associates the given alias with the key, password and certificate chain.
90 * If the specified alias already exists, it will be reassigned.
92 * @param alias
93 * the alias for the key.
107 public abstract void engineSetKeyEntry(String alias, Key key,
111 * Associates the given alias with a key and a certificate chain.
113 * If the specified alias already exists, it will be reassigned.
115 * @param alias
116 * the alias for the key.
127 public abstract void engineSetKeyEntry(String alias, byte[] key,
131 * Associates the given alias with a certificate.
133 * If the specified alias already exists, it will be reassigned.
135 * @param alias
136 * the alias for the certificate.
140 * if an existing alias is not associated to an entry containing
144 public abstract void engineSetCertificateEntry(String alias,
148 * Deletes the entry identified with the given alias from this {@code
151 * @param alias
152 * the alias for the entry.
156 public abstract void engineDeleteEntry(String alias)
160 * Returns an {@code Enumeration} over all alias names stored in this
163 * @return an {@code Enumeration} over all alias names stored in this
169 * Indicates whether the given alias is present in this {@code KeyStoreSpi}.
171 * @param alias
172 * the alias of an entry.
173 * @return {@code true} if the alias exists, {@code false} otherwise.
175 public abstract boolean engineContainsAlias(String alias);
185 * Indicates whether the specified alias is associated with either a
188 * @param alias
189 * the alias of an entry.
190 * @return {@code true} if the given alias is associated with a key entry.
192 public abstract boolean engineIsKeyEntry(String alias);
195 * Indicates whether the specified alias is associated with a
198 * @param alias
199 * the alias of an entry.
200 * @return {@code true} if the given alias is associated with a certificate
203 public abstract boolean engineIsCertificateEntry(String alias);
206 * Returns the alias associated with the first entry whose certificate
210 * the certificate to find the associated entry's alias for.
211 * @return the alias or {@code null} if no entry with the specified
328 * Returns the {@code Entry} with the given alias, using the specified
331 * @param alias
332 * the alias of the requested entry.
336 * @return he {@code Entry} with the given alias, using the specified
345 public KeyStore.Entry engineGetEntry(String alias,
348 if (!engineContainsAlias(alias)) {
351 if (engineIsCertificateEntry(alias)) {
353 engineGetCertificate(alias));
371 if (engineIsKeyEntry(alias)) {
372 Key key = engineGetKey(alias, passW);
375 engineGetCertificateChain(alias));
386 * the entry with the given {@code alias}. The entry is protected by the
389 * If the specified alias already exists, it will be reassigned.
391 * @param alias
392 * the alias for the entry.
400 public void engineSetEntry(String alias, KeyStore.Entry entry,
406 if (engineContainsAlias(alias)) {
407 engineDeleteEntry(alias);
412 engineSetCertificateEntry(alias, trE.getTrustedCertificate());
438 engineSetKeyEntry(alias, prE.getPrivateKey(), passW, prE
445 engineSetKeyEntry(alias, skE.getSecretKey(), passW, null);
446 // engineSetKeyEntry(alias, skE.getSecretKey().getEncoded(), null);
455 * Indicates whether the entry for the given alias is assignable to the
458 * @param alias
459 * the alias for the entry.
462 * @return {@code true} if the {@code Entry} for the alias is assignable to
465 public boolean engineEntryInstanceOf(String alias,
467 if (!engineContainsAlias(alias)) {
472 if (engineIsCertificateEntry(alias)) {
478 if (engineIsKeyEntry(alias)) {
481 return engineGetCertificate(alias) != null;
486 return engineGetCertificate(alias) == null;