| Modifier and Type | Class and Description |
|---|---|
| private static class | JKSKeyStoreSpi.BCJKSTrustedCertEntry
BCJKSTrustedCertEntry is a internal container for the certificate entry. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Hashtable | |
| private final JcaJceHelper | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addPassword(Digest
The digest instance. digest, char[] The password. password)Process password updates the digest with the password. |
| private CertificateFactory | |
| public Enumeration | engineAliases()
Implements abstract java. |
| public boolean | engineContainsAlias(String
the alias name alias)Implements abstract java. |
| public void | engineDeleteEntry(String
the alias name alias)Implements abstract java. |
| public Certificate | engineGetCertificate(String
the alias name alias)Implements abstract java. |
| public String | engineGetCertificateAlias(Certificate
the certificate to match with. cert)Implements abstract java. |
| public Certificate[] | engineGetCertificateChain(String
the alias name alias)Implements abstract java. |
| public Date | engineGetCreationDate(String
the alias name alias)Implements abstract java. |
| public Key | engineGetKey(String
the alias name alias, char[] the password for recovering the key password)Implements abstract java. |
| public boolean | engineIsCertificateEntry(String
the alias for the keystore entry to be checked alias)Implements abstract java. 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.
|
| public boolean | engineIsKeyEntry(String
the alias for the keystore entry to be checked alias)Implements abstract java. 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.
|
| public void | engineLoad(KeyStore.
the loadStoreParameterKeyStore.LoadStoreParameter
that specifies how to load the keystore,
which may be nullOverrides java. KeyStore.LoadStoreParameter.
|
| public void | engineLoad(InputStream
the input stream from which the keystore is loaded,
or stream, char[] nullthe password used to check the integrity of
the keystore, the password used to unlock the keystore,
or password)nullImplements abstract java. |
| public boolean | engineProbe(InputStream
the keystore data to be probed stream)Overrides java. |
| public void | engineSetCertificateEntry(String
the alias name alias, Certificate the certificate cert)Implements abstract java. |
| public void | engineSetKeyEntry(String
the alias name alias, Key the key to be associated with the alias key, char[] the password to protect the key password, Certificate[] the certificate chain for the corresponding public
key (only required if the given key is of type
chain)java.security.PrivateKey).Implements abstract java. |
| public void | engineSetKeyEntry(String
the alias name alias, byte[] the key (in protected format) to be associated with the alias key, Certificate[] the certificate chain for the corresponding public
key (only useful if the protected key is of type
chain)java.security.PrivateKey).Implements abstract java. |
| public int | engineSize()
Implements abstract java. |
| public void | engineStore(OutputStream
the output stream to which this keystore is written. stream, char[] the password to generate the keystore integrity check.
May be password)null if the keystore does not support
or require an integrity check.Implements abstract java. |
| private JKSKeyStoreSpi. | Returns: Either the passed in input stream or a new input stream.The input stream. inputStream, char[] the password. password)Validate password takes the checksum of the store and will either. |
| certificateEntries | back to summary |
|---|---|
| private final Hashtable<String, JKSKeyStoreSpi. | |
| helper | back to summary |
|---|---|
| private final JcaJceHelper helper | |
| NOT_IMPLEMENTED_MESSAGE | back to summary |
|---|---|
| private static final String NOT_IMPLEMENTED_MESSAGE | |
| JKSKeyStoreSpi | back to summary |
|---|---|
| public JKSKeyStoreSpi(JcaJceHelper helper) | |
| addPassword | back to summary |
|---|---|
| private void addPassword(Digest digest, char[] password) throws IOException Process password updates the digest with the password.
| |
| createCertFactory | back to summary |
|---|---|
| private CertificateFactory createCertFactory(String certFormat) throws CertificateException | |
| engineAliases | back to summary |
|---|---|
| public Enumeration Implements abstract java. Doc from java. Lists all the alias names of this keystore.
| |
| engineContainsAlias | back to summary |
|---|---|
| public boolean engineContainsAlias(String alias) Implements abstract java. Doc from java. Checks if the given alias exists in this keystore.
| |
| engineDeleteEntry | back to summary |
|---|---|
| public void engineDeleteEntry(String alias) throws KeyStoreException Implements abstract java. Doc from java. Deletes the entry identified by the given alias from this keystore.
| |
| engineGetCertificate | back to summary |
|---|---|
| public Certificate engineGetCertificate(String alias) Implements abstract java. Doc from java. Returns the certificate associated with the given alias. If the given alias name identifies an entry
created by a call to If the given alias name identifies an entry
created by a call to
| |
| engineGetCertificateAlias | back to summary |
|---|---|
| public String engineGetCertificateAlias(Certificate cert) Implements abstract java. Doc from java. Returns the (alias) name of the first keystore entry whose certificate matches the given certificate. This method attempts to match the given certificate with each
keystore entry. If the entry being considered was
created by a call to If the entry being considered was
created by a call to
| |
| engineGetCertificateChain | back to summary |
|---|---|
| public Certificate[] engineGetCertificateChain(String alias) Implements abstract java. Doc from java. Returns the certificate chain associated with the given alias.
The certificate chain must have been associated with the alias
by a call to
| |
| engineGetCreationDate | back to summary |
|---|---|
| public Date engineGetCreationDate(String alias) Implements abstract java. Doc from java. Returns the creation date of the entry identified by the given alias. | |
| engineGetKey | back to summary |
|---|---|
| public Key engineGetKey(String alias, char[] password) throws NoSuchAlgorithmException, UnrecoverableKeyException Implements abstract java. Doc from java. Returns the key associated with the given alias, using the given
password to recover it. The key must have been associated with
the alias by a call to
| |
| engineIsCertificateEntry | back to summary |
|---|---|
| public boolean engineIsCertificateEntry(String alias) Implements abstract java. Doc from java. Returns
| |
| engineIsKeyEntry | back to summary |
|---|---|
| public boolean engineIsKeyEntry(String alias) Implements abstract java. Doc from java. Returns
| |
| engineLoad | back to summary |
|---|---|
| public void engineLoad(KeyStore. Overrides java. Doc from java. Loads the keystore using the given
Note that if this KeyStore has already been loaded, it is reinitialized and loaded again from the given parameter.
| |
| engineLoad | back to summary |
|---|---|
| public void engineLoad(InputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException Implements abstract java. Doc from java. Loads the keystore from the given input stream. A password may be given to unlock the keystore (e.g. the keystore resides on a hardware token device), or to check the integrity of the keystore data. If a password is not given for integrity checking, then integrity checking is not performed.
| |
| engineProbe | back to summary |
|---|---|
| public boolean engineProbe(InputStream stream) throws IOException Overrides java. Doc from java. Probes the specified input stream to determine whether it contains a keystore that is supported by this implementation, or not.
| |
| engineSetCertificateEntry | back to summary |
|---|---|
| public void engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException Implements abstract java. Doc from java. Assigns the given certificate to the given alias. If the given alias identifies an existing entry
created by a call to
| |
| engineSetKeyEntry | back to summary |
|---|---|
| public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException Implements abstract java. Doc from java. Assigns the given key to the given alias, protecting it with the given password. If the given key is of type If the given alias already exists, the keystore information associated with it is overridden by the given key (and possibly certificate chain).
| |
| engineSetKeyEntry | back to summary |
|---|---|
| public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) throws KeyStoreException Implements abstract java. Doc from java. Assigns the given key (that has already been protected) to the given alias. If the protected key is of type
If the given alias already exists, the keystore information associated with it is overridden by the given key (and possibly certificate chain).
| |
| engineSize | back to summary |
|---|---|
| public int engineSize() Implements abstract java. Doc from java. Retrieves the number of entries in this keystore.
| |
| engineStore | back to summary |
|---|---|
| public void engineStore(OutputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException Implements abstract java. Doc from java. Stores this keystore to the given output stream, and protects its integrity with the given password.
| |
| validateStream | back to summary |
|---|---|
| private JKSKeyStoreSpi. Validate password takes the checksum of the store and will either. 1. If password is null, load the store into memory, return the result. 2. If password is not null, load the store into memory, test the checksum, and if successful return a new input stream instance of the store. 3. Fail if there is a password and an invalid checksum.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Certificate | |
| pack-priv final Date |
| Access | Constructor and Description |
|---|---|
| public |
| cert | back to summary |
|---|---|
| pack-priv final Certificate cert | |
| date | back to summary |
|---|---|
| pack-priv final Date date | |
| BCJKSTrustedCertEntry | back to summary |
|---|---|
| public BCJKSTrustedCertEntry(Date date, Certificate cert) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| ErasableByteStream | back to summary |
|---|---|
| public ErasableByteStream(byte[] buf, int offSet, int length) | |
| erase | back to summary |
|---|---|
| public void erase() | |