Uses of Class
java.security.KeyStoreException
| Package | Description |
|---|---|
| java.security |
Extensible cryptographic service provider infrastructure (SPI) for using
and defining services such as
Certificates,
Keys, KeyStores, MessageDigests, and Signatures. |
| java.security.cert |
This package provides all the classes and all the interfaces needed to generate, administer and verify
X.509 certificates.
|
| javax.net.ssl |
This package provides classes and interfaces needed to use the Secure
Sockets Layer (SSL) protocol and the successor Transport Layer
Security (TLS) protocol.
|
| org.apache.http.conn.ssl |
TLS/SSL specific parts of the HttpConn API.
|
| org.bouncycastle.jcajce.provider.keystore.bc | |
| org.bouncycastle.jcajce.provider.keystore.pkcs12 | |
| org.conscrypt |
-
Uses of KeyStoreException in java.security
Methods in java.security that throw KeyStoreException Modifier and Type Method Description Enumeration<String>KeyStore. aliases()Returns anEnumerationover all alias names stored in thisKeyStore.booleanKeyStore. containsAlias(String alias)Indicates whether the given alias is present in thisKeyStore.voidKeyStore. deleteEntry(String alias)Deletes the entry identified with the given alias from thisKeyStore.abstract voidKeyStoreSpi. engineDeleteEntry(String alias)Deletes the entry identified with the given alias from thisKeyStoreSpi.KeyStore.EntryKeyStoreSpi. engineGetEntry(String alias, KeyStore.ProtectionParameter protParam)Returns theEntrywith the given alias, using the specifiedProtectionParameter.abstract voidKeyStoreSpi. engineSetCertificateEntry(String alias, Certificate cert)Associates the given alias with a certificate.voidKeyStoreSpi. engineSetEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam)Stores the givenEntryin thisKeyStoreSpiand associates the entry with the givenalias.abstract voidKeyStoreSpi. engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)Associates the given alias with a key and a certificate chain.abstract voidKeyStoreSpi. engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)Associates the given alias with the key, password and certificate chain.booleanKeyStore. entryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass)Indicates whether the entry for the given alias is assignable to the providedClass.CertificateKeyStore. getCertificate(String alias)Returns the trusted certificate for the entry with the given alias.StringKeyStore. getCertificateAlias(Certificate cert)Returns the alias associated with the first entry whose certificate matches the specified certificate.Certificate[]KeyStore. getCertificateChain(String alias)Returns the certificate chain for the entry with the given alias.DateKeyStore. getCreationDate(String alias)Returns the creation date of the entry with the given alias.KeyStore.EntryKeyStore. getEntry(String alias, KeyStore.ProtectionParameter param)Returns theEntrywith the given alias, using the specifiedProtectionParameter.static KeyStoreKeyStore. getInstance(String type)Returns a new instance ofKeyStorewith the specified type.static KeyStoreKeyStore. getInstance(String type, String provider)Returns a new instance ofKeyStorefrom the specified provider with the given type.static KeyStoreKeyStore. getInstance(String type, Provider provider)Returns a new instance ofKeyStorefrom the specified provider with the given type.KeyKeyStore. getKey(String alias, char[] password)Returns the key with the given alias, using the password to recover the key from the store.abstract KeyStoreKeyStore.Builder. getKeyStore()Returns theKeyStorecreated by thisBuilder.abstract KeyStore.ProtectionParameterKeyStore.Builder. getProtectionParameter(String alias)Returns theProtectionParameterto be used when aEntrywith the specified alias is requested.booleanKeyStore. isCertificateEntry(String alias)Indicates whether the specified alias is associated with aKeyStore.TrustedCertificateEntry.booleanKeyStore. isKeyEntry(String alias)Indicates whether the specified alias is associated with either aKeyStore.PrivateKeyEntryor aKeyStore.SecretKeyEntry.voidKeyStore. setCertificateEntry(String alias, Certificate cert)Associates the given alias with a certificate.voidKeyStore. setEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter param)Stores the givenEntryin thisKeyStoreand associates the entry with the givenalias.voidKeyStore. setKeyEntry(String alias, byte[] key, Certificate[] chain)Associates the given alias with a key and a certificate chain.voidKeyStore. setKeyEntry(String alias, Key key, char[] password, Certificate[] chain)Associates the given alias with the key, password and certificate chain.intKeyStore. size()Returns the number of entries stored in thisKeyStore.voidKeyStore. store(OutputStream stream, char[] password)Writes thisKeyStoreto the specifiedOutputStream.voidKeyStore. store(KeyStore.LoadStoreParameter param)Stores thisKeyStoreusing the specifiedLoadStoreParameter. -
Uses of KeyStoreException in java.security.cert
Constructors in java.security.cert that throw KeyStoreException Constructor Description PKIXBuilderParameters(KeyStore keyStore, CertSelector targetConstraints)Creates a newPKIXBuilderParametersinstance with the trustedX509Certificateentries from the specifiedKeyStore.PKIXParameters(KeyStore keyStore)Creates a newPKIXParametersinstance with the trustedX509Certificateentries from 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 instance with the specified key store and password.protected abstract voidTrustManagerFactorySpi. engineInit(KeyStore ks)Initializes this factory instance with the specified keystore as source of certificate authorities and trust material.voidKeyManagerFactory. init(KeyStore ks, char[] password)Initializes this instance with the specified key store and password.voidTrustManagerFactory. init(KeyStore ks)Initializes this factory instance with the specified keystore as source of certificate authorities and trust material. -
Uses of KeyStoreException in org.apache.http.conn.ssl
Constructors in org.apache.http.conn.ssl that throw KeyStoreException Constructor Description SSLSocketFactory(String algorithm, KeyStore keystore, String keystorePassword, KeyStore truststore, SecureRandom random, HostNameResolver nameResolver)SSLSocketFactory(KeyStore truststore)SSLSocketFactory(KeyStore keystore, String keystorePassword)SSLSocketFactory(KeyStore keystore, String keystorePassword, KeyStore truststore) -
Uses of KeyStoreException in org.bouncycastle.jcajce.provider.keystore.bc
Methods in org.bouncycastle.jcajce.provider.keystore.bc that throw KeyStoreException Modifier and Type Method Description voidBcKeyStoreSpi. engineDeleteEntry(String alias)voidBcKeyStoreSpi. engineSetCertificateEntry(String alias, Certificate cert)voidBcKeyStoreSpi. engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)voidBcKeyStoreSpi. engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) -
Uses of KeyStoreException in org.bouncycastle.jcajce.provider.keystore.pkcs12
Methods in org.bouncycastle.jcajce.provider.keystore.pkcs12 that throw KeyStoreException Modifier and Type Method Description voidPKCS12KeyStoreSpi. engineDeleteEntry(String alias)this is not quite complete - we should follow up on the chain, a bit tricky if a certificate appears in more than one chain...voidPKCS12KeyStoreSpi. engineSetCertificateEntry(String alias, Certificate cert)voidPKCS12KeyStoreSpi. engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)voidPKCS12KeyStoreSpi. engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) -
Uses of KeyStoreException in org.conscrypt
Methods in org.conscrypt that throw KeyStoreException Modifier and Type Method Description protected voidKeyManagerFactoryImpl. engineInit(KeyStore ks, char[] password)voidTrustManagerFactoryImpl. engineInit(KeyStore ks)