Uses of Class
java.security.KeyStoreException
Packages that use 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
Methods in java.security that throw KeyStoreExceptionModifier and TypeMethodDescriptionfinal Enumeration<String> KeyStore.aliases()Lists all the alias names of this keystore.final booleanKeyStore.containsAlias(String alias) Checks if the given alias exists in this keystore.final 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.KeyStoreSpi.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.final booleanKeyStore.entryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass) Determines if the keystoreEntryfor the specifiedaliasis 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 CertificateKeyStore.getCertificate(String alias) Returns the certificate associated with the given alias.final StringKeyStore.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 DateKeyStore.getCreationDate(String alias) Returns the creation date of the entry identified by the given alias.final KeyStore.EntryKeyStore.getEntry(String alias, KeyStore.ProtectionParameter protParam) Gets a keystoreEntryfor the specified alias with the specified protection parameter.static final KeyStoreKeyStore.getInstance(File file, char[] password) Returns a loaded keystore object of the appropriate keystore type.static final KeyStoreKeyStore.getInstance(File file, KeyStore.LoadStoreParameter param) Returns a loaded keystore object of the appropriate keystore type.static KeyStoreKeyStore.getInstance(String type) Returns aKeyStoreobject of the specified type.static KeyStoreKeyStore.getInstance(String type, String provider) Returns aKeyStoreobject of the specified type.static KeyStoreKeyStore.getInstance(String type, Provider provider) Returns aKeyStoreobject of the specified type.final KeyReturns the key associated with the given alias, using the given password to recover it.abstract KeyStoreKeyStore.Builder.getKeyStore()Returns theKeyStoredescribed by this object.abstract KeyStore.ProtectionParameterKeyStore.Builder.getProtectionParameter(String alias) Returns theProtectionParameterthat should be used to obtain theEntrywith the given alias.final booleanKeyStore.isCertificateEntry(String alias) Returnstrueif the entry identified by the given alias was created by a call tosetCertificateEntry, or created by a call tosetEntrywith aTrustedCertificateEntry.final booleanKeyStore.isKeyEntry(String alias) Returnstrueif the entry identified by the given alias was created by a call tosetKeyEntry, or created by a call tosetEntrywith aPrivateKeyEntryor aSecretKeyEntry.final voidKeyStore.setCertificateEntry(String alias, Certificate cert) Assigns the given trusted certificate to the given alias.final voidKeyStore.setEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) Saves a keystoreEntryunder the specified alias.final voidKeyStore.setKeyEntry(String alias, byte[] key, Certificate[] chain) Assigns the given key (that has already been protected) to the given alias.final voidKeyStore.setKeyEntry(String alias, Key key, char[] password, Certificate[] chain) Assigns the given key to the given alias, protecting it with the given password.final intKeyStore.size()Retrieves the number of entries in this keystore.final voidKeyStore.store(OutputStream stream, char[] password) Stores this keystore to the given output stream, and protects its integrity with the given password.final 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 KeyStoreExceptionModifierConstructorDescriptionPKIXBuilderParameters(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 KeyStoreExceptionModifier and TypeMethodDescriptionprotected 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.final voidInitializes this factory with a source of key material.final voidInitializes this factory with a source of certificate authorities and related trust material.