| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final Debug | |
| private KeyStoreSpi | |
| private static final String | |
| private final Class | |
| private final String | |
| private final Class | |
| private final String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | KeyStoreDelegator(String primaryType, Class<? extends KeyStoreSpi> primaryKeyStore, String secondaryType, Class<? extends KeyStoreSpi> secondaryKeyStore)
|
| Modifier and Type | Method and Description |
|---|---|
| public Enumeration | engineAliases()
Implements abstract java. Lists all the alias names of this keystore. |
| public boolean | engineContainsAlias(String alias)
Implements abstract java. Checks if the given alias exists in this keystore. |
| public void | engineDeleteEntry(String alias)
Implements abstract java. Deletes the entry identified by the given alias from this keystore. |
| public boolean | engineEntryInstanceOf(String alias, Class<? extends KeyStore.
Overrides java. Determines if the keystore |
| public Set | engineGetAttributes(String alias)
Overrides java. Retrieves the attributes associated with the given alias. |
| public Certificate | engineGetCertificate(String alias)
Implements abstract java. Returns the certificate associated with the given alias. |
| public String | engineGetCertificateAlias(Certificate cert)
Implements abstract java. Returns the (alias) name of the first keystore entry whose certificate matches the given certificate. |
| public Certificate[] | engineGetCertificateChain(String alias)
Implements abstract java. Returns the certificate chain associated with the given alias. |
| public Date | engineGetCreationDate(String alias)
Implements abstract java. Returns the creation date of the entry identified by the given alias. |
| public KeyStore. | engineGetEntry(String alias, KeyStore.
Overrides java. Gets a |
| public Key | engineGetKey(String alias, char[] password)
Implements abstract java. Returns the key associated with the given alias, using the given password to recover it. |
| public boolean | engineIsCertificateEntry(String alias)
Implements abstract java. Returns |
| public boolean | engineIsKeyEntry(String alias)
Implements abstract java. Returns |
| public void | engineLoad(InputStream stream, char[] password)
Implements abstract java. Loads the keystore from the given input stream. |
| public boolean | engineProbe(InputStream stream)
Overrides java. Probe the first few bytes of the keystore data stream for a valid keystore encoding. |
| public void | engineSetCertificateEntry(String alias, Certificate cert)
Implements abstract java. Assigns the given certificate to the given alias. |
| public void | engineSetEntry(String alias, KeyStore.
Overrides java. Saves a |
| public void | engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
Implements abstract java. Assigns the given key to the given alias, protecting it with the given password. |
| public void | engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)
Implements abstract java. Assigns the given key (that has already been protected) to the given alias. |
| public int | engineSize()
Implements abstract java. Retrieves the number of entries in this keystore. |
| public void | engineStore(OutputStream stream, char[] password)
Implements abstract java. Stores this keystore to the given output stream, and protects its integrity with the given password. |
| compatModeEnabled | back to summary |
|---|---|
| private final boolean compatModeEnabled | |
| debug | back to summary |
|---|---|
| private static final Debug debug | |
| keystore | back to summary |
|---|---|
| private KeyStoreSpi keystore | |
| KEYSTORE_TYPE_COMPAT | back to summary |
|---|---|
| private static final String KEYSTORE_TYPE_COMPAT | |
| primaryKeyStore | back to summary |
|---|---|
| private final Class<? extends KeyStoreSpi> primaryKeyStore | |
| primaryType | back to summary |
|---|---|
| private final String primaryType | |
| secondaryKeyStore | back to summary |
|---|---|
| private final Class<? extends KeyStoreSpi> secondaryKeyStore | |
| secondaryType | back to summary |
|---|---|
| private final String secondaryType | |
| type | back to summary |
|---|---|
| private String type | |
| KeyStoreDelegator | back to summary |
|---|---|
| public KeyStoreDelegator(String primaryType, Class<? extends KeyStoreSpi> primaryKeyStore, String secondaryType, Class<? extends KeyStoreSpi> secondaryKeyStore) | |
| 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.
| |
| engineEntryInstanceOf | back to summary |
|---|---|
| public boolean engineEntryInstanceOf(String alias, Class<? extends KeyStore. Overrides java. Doc from java. Determines if the keystore
| |
| engineGetAttributes | back to summary |
|---|---|
| public Set Overrides java. Doc from java. Retrieves the attributes associated with the given alias.
| |
| 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.
| |
| engineGetEntry | back to summary |
|---|---|
| public KeyStore. Overrides java. Doc from java. Gets a
| |
| 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(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. Probe the first few bytes of the keystore data stream for a valid keystore encoding. Only the primary keystore implementation is probed.
| |
| 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
| |
| engineSetEntry | back to summary |
|---|---|
| public void engineSetEntry(String alias, KeyStore. Overrides java. Doc from java. Saves a If an entry already exists for the specified alias, it is overridden.
| |
| 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.
| |