to top
Android APIs
public abstract class

KeyManagerFactorySpi

extends Object
java.lang.Object
   ↳ javax.net.ssl.KeyManagerFactorySpi

Class Overview

The Service Provider Interface (SPI) for the KeyManagerFactory class.

Summary

Public Constructors
KeyManagerFactorySpi()
Creates a new KeyManagerFactorySpi instance.
Protected Methods
abstract KeyManager[] engineGetKeyManagers()
Returns a list of key managers, one instance for each type of key in the key store.
abstract void engineInit(ManagerFactoryParameters spec)
Initializes this instance with the specified factory parameters.
abstract void engineInit(KeyStore ks, char[] password)
Initializes this instance with the specified key store and password.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public KeyManagerFactorySpi ()

Added in API level 1

Creates a new KeyManagerFactorySpi instance.

Protected Methods

protected abstract KeyManager[] engineGetKeyManagers ()

Added in API level 1

Returns a list of key managers, one instance for each type of key in the key store.

Returns
  • a list of key managers.

protected abstract void engineInit (ManagerFactoryParameters spec)

Added in API level 1

Initializes this instance with the specified factory parameters.

Parameters
spec the factory parameters.
Throws
InvalidAlgorithmParameterException if an error occurs.

protected abstract void engineInit (KeyStore ks, char[] password)

Added in API level 1

Initializes this instance with the specified key store and password.

Parameters
ks the key store or null to use the default key store.
password the key store password.
Throws
KeyStoreException if initializing this instance fails.
NoSuchAlgorithmException if a required algorithm is not available.
UnrecoverableKeyException if a key cannot be recovered.