Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.net.ssl

Class KeyManagerFactory

java.lang.Object
|
+--javax.net.ssl.KeyManagerFactory


public class KeyManagerFactory

extends java.lang.Object

A class that creates key manager implementations based on a requested algorithm.

Author:

Constructor Summary

KeyManagerFactory(javax.net.ssl.KeyManagerFactorySpi kmfSpi, Provider provider, String algorithm)

Create a new key manager factory.

Method Summary

StringgetAlgorithm()

Returns the name of this key manager factory algorithm.
static StringgetDefaultAlgorithm()

Get the default algorithm name.
static javax.net.ssl.KeyManagerFactorygetInstance(String algorithm)

Get an instance of the named key manager factory, from the first provider that implements it.
static javax.net.ssl.KeyManagerFactorygetInstance(String algorithm, String provider)

Get an instance of the named key manager factory, from the named provider.
static javax.net.ssl.KeyManagerFactorygetInstance(String algorithm, Provider provider)

Get an instance of the named key manager factory, from the given provider.
javax.net.ssl.KeyManager[]getKeyManagers()

Get an array of key managers appropriate for this algorithm, with the most preferred manager first.
ProvidergetProvider()

Returns the provider of this implementation.
voidinit(javax.net.ssl.ManagerFactoryParameters params)

Initialize this instance with an implementation-dependent parameter object.
voidinit(KeyStore store, char[] passwd)

Initialize this instance with a key store and a password for private key entries.

Constructor Details

KeyManagerFactory

protected KeyManagerFactory(javax.net.ssl.KeyManagerFactorySpi kmfSpi, Provider provider, String algorithm)

Create a new key manager factory.

Parameters:


Method Details

getAlgorithm

public final String getAlgorithm()

Returns the name of this key manager factory algorithm.

Returns:


getDefaultAlgorithm

public static final String getDefaultAlgorithm()

Get the default algorithm name. This value may be specified at run-time via the security property "ssl.KeyManagerFactory.algorithm". If this property is not specified, this method returns "JessieX509".

Returns:


getInstance

public static final KeyManagerFactory getInstance(String algorithm)

Get an instance of the named key manager factory, from the first provider that implements it.

Parameters:

Returns:

Throws:


getInstance

public static final KeyManagerFactory getInstance(String algorithm, Provider provider)

Get an instance of the named key manager factory, from the given provider.

Parameters:

Returns:

Throws:


getInstance

public static final KeyManagerFactory getInstance(String algorithm, String provider)

Get an instance of the named key manager factory, from the named provider.

Parameters:

Returns:

Throws:


getKeyManagers

public final KeyManager[] getKeyManagers()

Get an array of key managers appropriate for this algorithm, with the most preferred manager first.

Returns:


getProvider

public final Provider getProvider()

Returns the provider of this implementation.

Returns:


init

public final void init(KeyStore store, char[] passwd)

Initialize this instance with a key store and a password for private key entries.

Parameters:

Throws:


init

public final void init(javax.net.ssl.ManagerFactoryParameters params)

Initialize this instance with an implementation-dependent parameter object.

Parameters:

Throws: