API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security. KeyStoreSpi View Source
Author(s)
Jan Luehe
Since
1.2
Version
1.22, 04/07/06
Serial
Hierarchy
 Object
      KeyStoreSpi
Implements
Subclasses
Description
publicabstract abstract class KeyStoreSpi
  This class defines the Service Provider Interface (SPI) for the KeyStore class.
See also:    KeyStore
Constructors
public KeyStoreSpi ()
Methods
Hide/Show inherited methods
publicabstract Enumeration<String> engineAliases ()
  Lists all the alias names of this keystore.
publicabstract boolean engineContainsAlias (String alias)
  Checks if the given alias exists in this keystore.
publicabstract void engineDeleteEntry (String alias) throws KeyStoreException
  Deletes the entry identified by the given alias from this keystore.
public boolean engineEntryInstanceOf (String alias, Class<Entry> entryClass)
  Determines if the keystore Entry for the specified alias is an instance or subclass of the specified entryClass.
publicabstract Certificate engineGetCertificate (String alias)
  Returns the certificate associated with the given alias.
publicabstract String engineGetCertificateAlias (Certificate cert)
  Returns the (alias) name of the first keystore entry whose certificate matches the given certificate.
publicabstract Certificate engineGetCertificateChain (String alias)
  Returns the certificate chain associated with the given alias.
publicabstract Date engineGetCreationDate (String alias)
  Returns the creation date of the entry identified by the given alias.
public Entry engineGetEntry (String alias, ProtectionParameter protParam) throws KeyStoreException NoSuchAlgorithmException UnrecoverableEntryException
  Gets a KeyStore.Entry for the specified alias with the specified protection parameter.
publicabstract Key engineGetKey (String alias, char[] password) throws NoSuchAlgorithmException UnrecoverableKeyException
  Returns the key associated with the given alias, using the given password to recover it.
publicabstract boolean engineIsCertificateEntry (String alias)
  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.
publicabstract boolean engineIsKeyEntry (String alias)
  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.
publicabstract void engineLoad (InputStream stream, char[] password) throws IOException NoSuchAlgorithmException CertificateException
  Loads the keystore from the given input stream.
public void engineLoad (LoadStoreParameter param) throws IOException NoSuchAlgorithmException CertificateException
  Loads the keystore using the given KeyStore.LoadStoreParameter.
publicabstract void engineSetCertificateEntry (String alias, Certificate cert) throws KeyStoreException
  Assigns the given certificate to the given alias.
public void engineSetEntry (String alias, Entry entry, ProtectionParameter protParam) throws KeyStoreException
  Saves a KeyStore.Entry under the specified alias.
publicabstract void engineSetKeyEntry (String alias, byte[] key, Certificate chain) throws KeyStoreException
  Assigns the given key (that has already been protected) to the given alias.
publicabstract void engineSetKeyEntry (String alias, Key key, char[] password, Certificate chain) throws KeyStoreException
  Assigns the given key to the given alias, protecting it with the given password.
publicabstract int engineSize ()
  Retrieves the number of entries in this keystore.
public void engineStore (LoadStoreParameter param) throws IOException NoSuchAlgorithmException CertificateException
  Stores this keystore using the given KeyStore.LoadStoreParmeter.
publicabstract void engineStore (OutputStream stream, char[] password) throws IOException NoSuchAlgorithmException CertificateException
  Stores this keystore to the given output stream, and protects its integrity with the given password.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar