Lines Matching refs:alias
72 * <p> Each entry in a keystore is identified by an "alias" string. In the
766 * Returns the key associated with the given alias, using the given
768 * the alias by a call to <code>setKeyEntry</code>,
772 * @param alias the alias name
775 * @return the requested key, or null if the given alias does not exist
785 public final Key getKey(String alias, char[] password)
792 return keyStoreSpi.engineGetKey(alias, password);
796 * Returns the certificate chain associated with the given alias.
797 * The certificate chain must have been associated with the alias
802 * @param alias the alias name
805 * followed by zero or more certificate authorities), or null if the given alias
811 public final Certificate[] getCertificateChain(String alias)
817 return keyStoreSpi.engineGetCertificateChain(alias);
821 * Returns the certificate associated with the given alias.
823 * <p> If the given alias name identifies an entry
829 * <p> If the given alias name identifies an entry
836 * @param alias the alias name
838 * @return the certificate, or null if the given alias does not exist or
844 public final Certificate getCertificate(String alias)
850 return keyStoreSpi.engineGetCertificate(alias);
854 * Returns the creation date of the entry identified by the given alias.
856 * @param alias the alias name
858 * @return the creation date of this entry, or null if the given alias does
864 public final Date getCreationDate(String alias)
870 return keyStoreSpi.engineGetCreationDate(alias);
874 * Assigns the given key to the given alias, protecting it with the given
881 * <p>If the given alias already exists, the keystore information
885 * @param alias the alias name
886 * @param key the key to be associated with the alias
896 public final void setKeyEntry(String alias, Key key, char[] password,
909 keyStoreSpi.engineSetKeyEntry(alias, key, password, chain);
914 * alias.
923 * <p>If the given alias already exists, the keystore information
927 * @param alias the alias name
928 * @param key the key (in protected format) to be associated with the alias
936 public final void setKeyEntry(String alias, byte[] key,
943 keyStoreSpi.engineSetKeyEntry(alias, key, chain);
947 * Assigns the given trusted certificate to the given alias.
949 * <p> If the given alias identifies an existing entry
956 * @param alias the alias name
960 * or the given alias already exists and does not identify an
964 public final void setCertificateEntry(String alias, Certificate cert)
970 keyStoreSpi.engineSetCertificateEntry(alias, cert);
974 * Deletes the entry identified by the given alias from this keystore.
976 * @param alias the alias name
981 public final void deleteEntry(String alias)
987 keyStoreSpi.engineDeleteEntry(alias);
991 * Lists all the alias names of this keystore.
993 * @return enumeration of the alias names
1008 * Checks if the given alias exists in this keystore.
1010 * @param alias the alias name
1012 * @return true if the alias exists, false otherwise
1017 public final boolean containsAlias(String alias)
1023 return keyStoreSpi.engineContainsAlias(alias);
1044 * Returns true if the entry identified by the given alias
1049 * @param alias the alias for the keystore entry to be checked
1051 * @return true if the entry identified by the given alias is a
1057 public final boolean isKeyEntry(String alias)
1063 return keyStoreSpi.engineIsKeyEntry(alias);
1067 * Returns true if the entry identified by the given alias
1072 * @param alias the alias for the keystore entry to be checked
1074 * @return true if the entry identified by the given alias contains a
1080 public final boolean isCertificateEntry(String alias)
1086 return keyStoreSpi.engineIsCertificateEntry(alias);
1090 * Returns the (alias) name of the first keystore entry whose certificate
1109 * @return the alias name of the first entry with a matching certificate,
1253 * Gets a keystore <code>Entry</code> for the specified alias
1256 * @param alias get the keystore <code>Entry</code> for this alias
1261 * @return the keystore <code>Entry</code> for the specified alias,
1265 * <code>alias</code> is <code>null</code>
1280 public final Entry getEntry(String alias, ProtectionParameter protParam)
1284 if (alias == null) {
1290 return keyStoreSpi.engineGetEntry(alias, protParam);
1294 * Saves a keystore <code>Entry</code> under the specified alias.
1298 * <p> If an entry already exists for the specified alias,
1301 * @param alias save the keystore <code>Entry</code> under this alias
1308 * <code>alias</code> or <code>entry</code>
1317 public final void setEntry(String alias, Entry entry,
1320 if (alias == null || entry == null) {
1326 keyStoreSpi.engineSetEntry(alias, entry, protParam);
1331 * <code>alias</code> is an instance or subclass of the specified
1334 * @param alias the alias name
1338 * <code>alias</code> is an instance or subclass of the
1342 * <code>alias</code> or <code>entryClass</code>
1350 entryInstanceOf(String alias,
1355 if (alias == null || entryClass == null) {
1361 return keyStoreSpi.engineEntryInstanceOf(alias, entryClass);
1402 * the {@link KeyStore.Entry Entry} with the given alias.
1407 * the {@link KeyStore.Entry Entry} with the given alias.
1408 * @param alias the alias of the KeyStore entry
1409 * @throws NullPointerException if alias is null
1415 public abstract ProtectionParameter getProtectionParameter(String alias)
1453 public ProtectionParameter getProtectionParameter(String alias)
1455 if (alias == null) {
1636 getProtectionParameter(String alias) {
1637 if (alias == null) {
1740 public ProtectionParameter getProtectionParameter(String alias)
1742 if (alias == null) {