Uses of Class
java.security.KeyStoreException
Package
Description
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
Provides classes for the secure socket package.
-
Uses of KeyStoreException in java.security
Modifier and TypeMethodDescriptionfinal Enumeration<String>
KeyStore.aliases()
Lists all the alias names of this keystore.final boolean
KeyStore.containsAlias
(String alias) Checks if the given alias exists in this keystore.final void
KeyStore.deleteEntry
(String alias) Deletes the entry identified by the given alias from this keystore.abstract void
KeyStoreSpi.engineDeleteEntry
(String alias) Deletes the entry identified by the given alias from this keystore.KeyStoreSpi.engineGetEntry
(String alias, KeyStore.ProtectionParameter protParam) Gets aKeyStore.Entry
for the specified alias with the specified protection parameter.abstract void
KeyStoreSpi.engineSetCertificateEntry
(String alias, Certificate cert) Assigns the given certificate to the given alias.void
KeyStoreSpi.engineSetEntry
(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) Saves aKeyStore.Entry
under the specified alias.abstract void
KeyStoreSpi.engineSetKeyEntry
(String alias, byte[] key, Certificate[] chain) Assigns the given key (that has already been protected) to the given alias.abstract void
KeyStoreSpi.engineSetKeyEntry
(String alias, Key key, char[] password, Certificate[] chain) Assigns the given key to the given alias, protecting it with the given password.final boolean
KeyStore.entryInstanceOf
(String alias, Class<? extends KeyStore.Entry> entryClass) Determines if the keystoreEntry
for the specifiedalias
is an instance or subclass of the specifiedentryClass
.final Set<KeyStore.Entry.Attribute>
KeyStore.getAttributes
(String alias) Retrieves the attributes associated with the given alias.final Certificate
KeyStore.getCertificate
(String alias) Returns the certificate associated with the given alias.final String
KeyStore.getCertificateAlias
(Certificate cert) Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.final Certificate[]
KeyStore.getCertificateChain
(String alias) Returns the certificate chain associated with the given alias.final Date
KeyStore.getCreationDate
(String alias) Returns the creation date of the entry identified by the given alias.final KeyStore.Entry
KeyStore.getEntry
(String alias, KeyStore.ProtectionParameter protParam) Gets a keystoreEntry
for the specified alias with the specified protection parameter.static final KeyStore
KeyStore.getInstance
(File file, char[] password) Returns a loaded keystore object of the appropriate keystore type.static final KeyStore
KeyStore.getInstance
(File file, KeyStore.LoadStoreParameter param) Returns a loaded keystore object of the appropriate keystore type.static KeyStore
KeyStore.getInstance
(String type) Returns aKeyStore
object of the specified type.static KeyStore
KeyStore.getInstance
(String type, String provider) Returns aKeyStore
object of the specified type.static KeyStore
KeyStore.getInstance
(String type, Provider provider) Returns aKeyStore
object of the specified type.final Key
Returns the key associated with the given alias, using the given password to recover it.abstract KeyStore
KeyStore.Builder.getKeyStore()
Returns theKeyStore
described by this object.abstract KeyStore.ProtectionParameter
KeyStore.Builder.getProtectionParameter
(String alias) Returns theProtectionParameter
that should be used to obtain theEntry
with the given alias.final boolean
KeyStore.isCertificateEntry
(String alias) Returnstrue
if the entry identified by the given alias was created by a call tosetCertificateEntry
, or created by a call tosetEntry
with aTrustedCertificateEntry
.final boolean
KeyStore.isKeyEntry
(String alias) Returnstrue
if the entry identified by the given alias was created by a call tosetKeyEntry
, or created by a call tosetEntry
with aPrivateKeyEntry
or aSecretKeyEntry
.final void
KeyStore.setCertificateEntry
(String alias, Certificate cert) Assigns the given trusted certificate to the given alias.final void
KeyStore.setEntry
(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) Saves a keystoreEntry
under the specified alias.final void
KeyStore.setKeyEntry
(String alias, byte[] key, Certificate[] chain) Assigns the given key (that has already been protected) to the given alias.final void
KeyStore.setKeyEntry
(String alias, Key key, char[] password, Certificate[] chain) Assigns the given key to the given alias, protecting it with the given password.final int
KeyStore.size()
Retrieves the number of entries in this keystore.final void
KeyStore.store
(OutputStream stream, char[] password) Stores this keystore to the given output stream, and protects its integrity with the given password.final void
KeyStore.store
(KeyStore.LoadStoreParameter param) Stores this keystore using the givenLoadStoreParameter
. -
Uses of KeyStoreException in java.security.cert
ModifierConstructorDescriptionPKIXBuilderParameters
(KeyStore keystore, CertSelector targetConstraints) Creates an instance ofPKIXBuilderParameters
that populates the set of most-trusted CAs from the trusted certificate entries contained in the specifiedKeyStore
.PKIXParameters
(KeyStore keystore) Creates an instance ofPKIXParameters
that populates the set of most-trusted CAs from the trusted certificate entries contained in the specifiedKeyStore
. -
Uses of KeyStoreException in javax.net.ssl
Modifier and TypeMethodDescriptionprotected abstract void
KeyManagerFactorySpi.engineInit
(KeyStore ks, char[] password) Initializes this factory with a source of key material.protected abstract void
TrustManagerFactorySpi.engineInit
(KeyStore ks) Initializes this factory with a source of certificate authorities and related trust material.final void
Initializes this factory with a source of key material.final void
Initializes this factory with a source of certificate authorities and related trust material.