Skip to content

Most visited

Recently visited

navigation
Added in API level 1

KeyManagerFactorySpi

public abstract class KeyManagerFactorySpi
extends Object

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


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.

Inherited methods

From class java.lang.Object

Public constructors

KeyManagerFactorySpi

Added in API level 1
KeyManagerFactorySpi ()

Creates a new KeyManagerFactorySpi instance.

Protected methods

engineGetKeyManagers

Added in API level 1
KeyManager[] engineGetKeyManagers ()

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

Returns
KeyManager[] a list of key managers.

engineInit

Added in API level 1
void engineInit (ManagerFactoryParameters spec)

Initializes this instance with the specified factory parameters.

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

engineInit

Added in API level 1
void engineInit (KeyStore ks, 
                char[] password)

Initializes this instance with the specified key store and password.

Parameters
ks KeyStore: the key store or null to use the default key store.
password char: 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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.