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

Class TrustManagerFactory

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


public class TrustManagerFactory

extends java.lang.Object

A factory for creating trust manager objects.

Constructor Summary

TrustManagerFactory(javax.net.ssl.TrustManagerFactorySpi tmfSpi, Provider provider, String algorithm)

Creates a new trust manager factory.

Method Summary

StringgetAlgorithm()

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

Returns the default algorithm for trust manager factories.
static javax.net.ssl.TrustManagerFactorygetInstance(String algorithm)

Returns an instance of a trust manager factory for the given algorithm from the first provider that implements it.
static javax.net.ssl.TrustManagerFactorygetInstance(String algorithm, String provider)

Returns an instance of a trust manager factory for the given algorithm from the named provider.
static javax.net.ssl.TrustManagerFactorygetInstance(String algorithm, Provider provider)

Returns an instance of a trust manager factory for the given algorithm from the specified provider.
ProvidergetProvider()

Returns the provider of the underlying implementation.
javax.net.ssl.TrustManager[]getTrustManagers()

Returns the trust managers created by this factory.
voidinit(javax.net.ssl.ManagerFactoryParameters params)

Initialize this instance with some algorithm-specific parameters.
voidinit(KeyStore store)

Initialize this instance with a key store.

Constructor Details

TrustManagerFactory

protected TrustManagerFactory(javax.net.ssl.TrustManagerFactorySpi tmfSpi, Provider provider, String algorithm)

Creates a new trust manager factory.

Parameters:


Method Details

getAlgorithm

public final String getAlgorithm()

Returns the name of this trust manager algorithm.

Returns:


getDefaultAlgorithm

public static final String getDefaultAlgorithm()

Returns the default algorithm for trust manager factories. The value returned is either the value of the security property "ssl.TrustManagerFactory.algorithm" if it is set, or the value "JessieX509" if not.

Returns:

See Also:


getInstance

public static final TrustManagerFactory getInstance(String algorithm)

Returns an instance of a trust manager factory for the given algorithm from the first provider that implements it.

Parameters:

Returns:

Throws:


getInstance

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

Returns an instance of a trust manager factory for the given algorithm from the specified provider.

Parameters:

Returns:

Throws:


getInstance

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

Returns an instance of a trust manager factory for the given algorithm from the named provider.

Parameters:

Returns:

Throws:


getProvider

public final Provider getProvider()

Returns the provider of the underlying implementation.

Returns:


getTrustManagers

public final TrustManager[] getTrustManagers()

Returns the trust managers created by this factory.

Returns:


init

public final void init(KeyStore store)

Initialize this instance with a key store. The key store may be null, in which case a default will be used.

Parameters:

Throws:


init

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

Initialize this instance with some algorithm-specific parameters.

Parameters:

Throws: