Lines Matching refs:KeyStore

31 import java.security.KeyStore.*;
41 * for the <code>KeyStore</code> class.
49 * @see KeyStore
300 * <code>KeyStore.LoadStoreParmeter</code>.
302 * @param param the <code>KeyStore.LoadStoreParmeter</code>
307 * <code>KeyStore.LoadStoreParmeter</code>
317 public void engineStore(KeyStore.LoadStoreParameter param)
354 * <code>KeyStore.LoadStoreParameter</code>.
356 * <p> Note that if this KeyStore has already been loaded, it is
359 * @param param the <code>KeyStore.LoadStoreParameter</code>
364 * <code>KeyStore.LoadStoreParameter</code>
379 public void engineLoad(KeyStore.LoadStoreParameter param)
388 if (param instanceof KeyStore.SimpleLoadStoreParameter) {
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,
446 KeyStore.ProtectionParameter protParam)
456 return new KeyStore.TrustedCertificateEntry
464 if (protParam instanceof KeyStore.PasswordProtection) {
469 KeyStore.PasswordProtection pp =
470 (KeyStore.PasswordProtection)protParam;
476 return new KeyStore.PrivateKeyEntry((PrivateKey)key, chain);
478 return new KeyStore.SecretKeyEntry((SecretKey)key);
487 * Saves a <code>KeyStore.Entry</code> under the specified alias.
494 * @param alias save the <code>KeyStore.Entry</code> under this alias
504 public void engineSetEntry(String alias, KeyStore.Entry entry,
505 KeyStore.ProtectionParameter protParam)
510 !(protParam instanceof KeyStore.PasswordProtection)) {
513 KeyStore.PasswordProtection pProtect = null;
515 pProtect = (KeyStore.PasswordProtection)protParam;
519 if (entry instanceof KeyStore.TrustedCertificateEntry) {
525 KeyStore.TrustedCertificateEntry tce =
526 (KeyStore.TrustedCertificateEntry)entry;
530 } else if (entry instanceof KeyStore.PrivateKeyEntry) {
538 ((KeyStore.PrivateKeyEntry)entry).getPrivateKey(),
540 ((KeyStore.PrivateKeyEntry)entry).getCertificateChain());
543 } else if (entry instanceof KeyStore.SecretKeyEntry) {
551 ((KeyStore.SecretKeyEntry)entry).getSecretKey(),
578 Class<? extends KeyStore.Entry> entryClass)
580 if (entryClass == KeyStore.TrustedCertificateEntry.class) {
583 if (entryClass == KeyStore.PrivateKeyEntry.class) {
587 if (entryClass == KeyStore.SecretKeyEntry.class) {