Uses of Class
java.security.KeyStoreException
| Package | Description |
|---|---|
| java.security |
Provides the classes and interfaces for the security framework.
|
| java.security.cert |
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
|
| javax.net.ssl |
Provides classes for the secure socket package.
|
-
Uses of KeyStoreException in java.security
Methods in java.security that throw KeyStoreException Modifier and Type Method Description Enumeration<String>KeyStore. aliases()Lists all the alias names of this keystore.booleanKeyStore. containsAlias(String alias)Checks if the given alias exists in this keystore.voidKeyStore. deleteEntry(String alias)Deletes the entry identified by the given alias from this keystore.abstract voidKeyStoreSpi. engineDeleteEntry(String alias)Deletes the entry identified by the given alias from this keystore.KeyStore.EntryKeyStoreSpi. engineGetEntry(String alias, KeyStore.ProtectionParameter protParam)Gets aKeyStore.Entryfor the specified alias with the specified protection parameter.abstract voidKeyStoreSpi. engineSetCertificateEntry(String alias, Certificate cert)Assigns the given certificate to the given alias.voidKeyStoreSpi. engineSetEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam)Saves aKeyStore.Entryunder the specified alias.abstract voidKeyStoreSpi. engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)Assigns the given key (that has already been protected) to the given alias.abstract voidKeyStoreSpi. engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)Assigns the given key to the given alias, protecting it with the given password.booleanKeyStore. entryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass)Determines if the keystoreEntryfor the specifiedaliasis an instance or subclass of the specifiedentryClass.CertificateKeyStore. getCertificate(String alias)Returns the certificate associated with the given alias.StringKeyStore. getCertificateAlias(Certificate cert)Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.Certificate[]KeyStore. getCertificateChain(String alias)Returns the certificate chain associated with the given alias.DateKeyStore. getCreationDate(String alias)Returns the creation date of the entry identified by the given alias.KeyStore.EntryKeyStore. getEntry(String alias, KeyStore.ProtectionParameter protParam)Gets a keystoreEntryfor the specified alias with the specified protection parameter.static KeyStoreKeyStore. getInstance(File file, char[] password)Returns a loaded keystore object of the appropriate keystore type.static KeyStoreKeyStore. getInstance(File file, KeyStore.LoadStoreParameter param)Returns a loaded keystore object of the appropriate keystore type.static KeyStoreKeyStore. getInstance(String type)Returns a keystore object of the specified type.static KeyStoreKeyStore. getInstance(String type, String provider)Returns a keystore object of the specified type.static KeyStoreKeyStore. getInstance(String type, Provider provider)Returns a keystore object of the specified type.KeyKeyStore. getKey(String alias, char[] password)Returns the key associated with the given alias, using the given password to recover it.abstract KeyStoreKeyStore.Builder. getKeyStore()Returns the KeyStore described by this object.abstract KeyStore.ProtectionParameterKeyStore.Builder. getProtectionParameter(String alias)Returns the ProtectionParameters that should be used to obtain theEntrywith the given alias.booleanKeyStore. isCertificateEntry(String alias)Returns true if the entry identified by the given alias was created by a call tosetCertificateEntry, or created by a call tosetEntrywith aTrustedCertificateEntry.booleanKeyStore. isKeyEntry(String alias)Returns true if the entry identified by the given alias was created by a call tosetKeyEntry, or created by a call tosetEntrywith aPrivateKeyEntryor aSecretKeyEntry.voidKeyStore. setCertificateEntry(String alias, Certificate cert)Assigns the given trusted certificate to the given alias.voidKeyStore. setEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam)Saves a keystoreEntryunder the specified alias.voidKeyStore. setKeyEntry(String alias, byte[] key, Certificate[] chain)Assigns the given key (that has already been protected) to the given alias.voidKeyStore. setKeyEntry(String alias, Key key, char[] password, Certificate[] chain)Assigns the given key to the given alias, protecting it with the given password.intKeyStore. size()Retrieves the number of entries in this keystore.voidKeyStore. store(OutputStream stream, char[] password)Stores this keystore to the given output stream, and protects its integrity with the given password.voidKeyStore. store(KeyStore.LoadStoreParameter param)Stores this keystore using the givenLoadStoreParameter. -
Uses of KeyStoreException in java.security.cert
Constructors in java.security.cert that throw KeyStoreException Constructor Description PKIXBuilderParameters(KeyStore keystore, CertSelector targetConstraints)Creates an instance ofPKIXBuilderParametersthat populates the set of most-trusted CAs from the trusted certificate entries contained in the specifiedKeyStore.PKIXParameters(KeyStore keystore)Creates an instance ofPKIXParametersthat populates the set of most-trusted CAs from the trusted certificate entries contained in the specifiedKeyStore. -
Uses of KeyStoreException in javax.net.ssl
Methods in javax.net.ssl that throw KeyStoreException Modifier and Type Method Description protected abstract voidKeyManagerFactorySpi. engineInit(KeyStore ks, char[] password)Initializes this factory with a source of key material.protected abstract voidTrustManagerFactorySpi. engineInit(KeyStore ks)Initializes this factory with a source of certificate authorities and related trust material.voidKeyManagerFactory. init(KeyStore ks, char[] password)Initializes this factory with a source of key material.voidTrustManagerFactory. init(KeyStore ks)Initializes this factory with a source of certificate authorities and related trust material.