| public abstract class java.security KeyStoreSpi
|
Java SE 6 |
KeyStore class.
All the abstract methods in this class must be implemented by each
cryptographic service provider who wishes to supply the implementation
of a keystore for a particular keystore type.
| version | 1.22, 04/07/06 |
| since | 1.2 |
| See also | java.security.KeyStore |
| Constructors | |
|---|---|
| public | KeyStoreSpi() |
| Methods | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract public Enumeration | engineAliases() Details
Lists all the alias names of this keystore.
| ||||||||||||||||
| abstract public boolean | engineContainsAlias(String alias) Details
Checks if the given alias exists in this keystore.
| ||||||||||||||||
| abstract public void | engineDeleteEntry(String alias) throws KeyStoreException Details
Deletes the entry identified by the given alias from this keystore.
| ||||||||||||||||
| public boolean | engineEntryInstanceOf(String alias, Class entryClass) Details
Determines if the keystore Entry for the specified
alias is an instance or subclass of the specified
entryClass.
| ||||||||||||||||
| abstract public Certificate | engineGetCertificate(String alias) Details
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
| ||||||||||||||||
| abstract public String | engineGetCertificateAlias(Certificate cert) Details
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
| ||||||||||||||||
| abstract public Certificate[] | engineGetCertificateChain(String alias) Details
Returns the certificate chain associated with the given alias.
The certificate chain must have been associated with the alias
by a call to setKeyEntry,
or by a call to setEntry with a
PrivateKeyEntry.
| ||||||||||||||||
| abstract public Date | engineGetCreationDate(String alias) Details
Returns the creation date of the entry identified by the given alias.
| ||||||||||||||||
| public KeyStore.Entry | engineGetEntry(String alias, KeyStore.ProtectionParameter protParam) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableEntryException Details
Gets a KeyStore.Entry for the specified alias
with the specified protection parameter.
| ||||||||||||||||
| abstract public Key | engineGetKey(String alias, char[] password) throws NoSuchAlgorithmException, UnrecoverableKeyException Details
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 setKeyEntry,
or by a call to setEntry with a
PrivateKeyEntry or SecretKeyEntry.
| ||||||||||||||||
| abstract public boolean | engineIsCertificateEntry(String alias) Details
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.
| ||||||||||||||||
| abstract public boolean | engineIsKeyEntry(String alias) Details
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.
| ||||||||||||||||
| abstract public void | engineLoad(InputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException Details
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.
| ||||||||||||||||
| public void | engineLoad(KeyStore.LoadStoreParameter param) throws IOException, NoSuchAlgorithmException, CertificateException Details
Loads the keystore using the given
KeyStore.LoadStoreParameter.
Note that if this KeyStore has already been loaded, it is reinitialized and loaded again from the given parameter.
| ||||||||||||||||
| abstract public void | engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException Details
Assigns the given certificate to the given alias.
If the given alias identifies an existing entry
created by a call to
| ||||||||||||||||
| public void | engineSetEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) throws KeyStoreException Details
Saves a KeyStore.Entry under the specified alias.
The specified protection parameter is used to protect the
Entry.
If an entry already exists for the specified alias, it is overridden.
| ||||||||||||||||
| abstract public void | engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException Details
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).
| ||||||||||||||||
| abstract public void | engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) throws KeyStoreException Details
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).
| ||||||||||||||||
| abstract public int | engineSize() Details
Retrieves the number of entries in this keystore.
| ||||||||||||||||
| abstract public void | engineStore(OutputStream stream, char[] password) throws IOException, NoSuchAlgorithmException, CertificateException Details
Stores this keystore to the given output stream, and protects its
integrity with the given password.
| ||||||||||||||||
| public void | engineStore(KeyStore.LoadStoreParameter param) throws IOException, NoSuchAlgorithmException, CertificateException Details
Stores this keystore using the given
KeyStore.LoadStoreParmeter.
| ||||||||||||||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2013 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|