| 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.
|
| Modifier and Type | Method and Description |
|---|---|
Enumeration |
KeyStore.aliases()
Lists all the alias names of this keystore.
|
boolean |
KeyStore.containsAlias(String
Checks if the given alias exists in this keystore.
|
void |
KeyStore.deleteEntry(String
Deletes the entry identified by the given alias from this keystore.
|
abstract void |
KeyStoreSpi.engineDeleteEntry(String
Deletes the entry identified by the given alias from this keystore.
|
KeyStore |
KeyStoreSpi.engineGetEntry(String
Gets a
KeyStore.Entry for the specified alias with the specified protection parameter.
|
abstract void |
KeyStoreSpi.engineSetCertificateEntry(String
Assigns the given certificate to the given alias.
|
void |
KeyStoreSpi.engineSetEntry(String
Saves a
KeyStore.Entry under the specified alias.
|
abstract void |
KeyStoreSpi.engineSetKeyEntry(String
Assigns the given key (that has already been protected) to the given alias.
|
abstract void |
KeyStoreSpi.engineSetKeyEntry(String
Assigns the given key to the given alias, protecting it with the given password.
|
boolean |
KeyStore.entryInstanceOf(String
Determines if the keystore
Entry for the specified
alias is an instance or subclass of the specified
entryClass.
|
Certificate |
KeyStore.getCertificate(String
Returns the certificate associated with the given alias.
|
String |
KeyStore.getCertificateAlias(Certificate
Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.
|
Certificate |
KeyStore.getCertificateChain(String
Returns the certificate chain associated with the given alias.
|
Date |
KeyStore.getCreationDate(String
Returns the creation date of the entry identified by the given alias.
|
KeyStore |
KeyStore.getEntry(String
Gets a keystore
Entry for the specified alias with the specified protection parameter.
|
static KeyStore |
KeyStore.getInstance(String
Returns a keystore object of the specified type.
|
static KeyStore |
KeyStore.getInstance(String
Returns a keystore object of the specified type.
|
static KeyStore |
KeyStore.getInstance(String
Returns a keystore object of the specified type.
|
Key |
KeyStore.getKey(String
Returns the key associated with the given alias, using the given password to recover it.
|
abstract KeyStore |
KeyStore.Builder.getKeyStore()
Returns the KeyStore described by this object.
|
abstract KeyStore |
KeyStore.Builder.getProtectionParameter(String
Returns the ProtectionParameters that should be used to obtain the
Entry with the given alias.
|
boolean |
KeyStore.isCertificateEntry(String
Returns true if the entry identified by the given alias was created by a call to
setCertificateEntry, or created by a call to
setEntry with a
TrustedCertificateEntry.
|
boolean |
KeyStore.isKeyEntry(String
Returns true if the entry identified by the given alias was created by a call to
setKeyEntry, or created by a call to
setEntry with a
PrivateKeyEntry or a
SecretKeyEntry.
|
void |
KeyStore.setCertificateEntry(String
Assigns the given trusted certificate to the given alias.
|
void |
KeyStore.setEntry(String
Saves a keystore
Entry under the specified alias.
|
void |
KeyStore.setKeyEntry(String
Assigns the given key (that has already been protected) to the given alias.
|
void |
KeyStore.setKeyEntry(String
Assigns the given key to the given alias, protecting it with the given password.
|
int |
KeyStore.size()
Retrieves the number of entries in this keystore.
|
void |
KeyStore.store(KeyStore
Stores this keystore using the given
LoadStoreParameter.
|
void |
KeyStore.store(OutputStream
Stores this keystore to the given output stream, and protects its integrity with the given password.
|
| Constructor and Description | |
|---|---|
PKIXBuilderParameters(KeyStore
Creates an instance of
PKIXBuilderParameters that populates the set of most-trusted CAs from the trusted certificate entries contained in the specified
KeyStore.
|
|
PKIXParameters(KeyStore
Creates an instance of
PKIXParameters that populates the set of most-trusted CAs from the trusted certificate entries contained in the specified
KeyStore.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
TrustManagerFactorySpi.engineInit(KeyStore
Initializes this factory with a source of certificate authorities and related trust material.
|
protected abstract void |
KeyManagerFactorySpi.engineInit(KeyStore
Initializes this factory with a source of key material.
|
void |
TrustManagerFactory.init(KeyStore
Initializes this factory with a source of certificate authorities and related trust material.
|
void |
KeyManagerFactory.init(KeyStore
Initializes this factory with a source of key material.
|