javax.net.ssl


public class
extends

A factory for creating trust manager objects.

Constructor Summary

( tmfSpi, provider, algorithm)
Creates a new trust manager factory.

Method Summary

()
Returns the name of this trust manager algorithm.
static
()
Returns the default algorithm for trust manager factories.
static
( algorithm)
Returns an instance of a trust manager factory for the given algorithm from the first provider that implements it.
static
( algorithm, provider)
Returns an instance of a trust manager factory for the given algorithm from the named provider.
static
( algorithm, provider)
Returns an instance of a trust manager factory for the given algorithm from the specified provider.
()
Returns the provider of the underlying implementation.
[]
()
Returns the trust managers created by this factory.
void
( store)
Initialize this instance with a key store.
void
( params)
Initialize this instance with some algorithm-specific parameters.

Methods inherited from class java.lang.

, , , , , , , , , ,

Constructor Details

TrustManagerFactory

protected ( tmfSpi,
  provider,
  algorithm)
Creates a new trust manager factory.
Parameters:
tmfSpi - The underlying engine class.
provider - The provider of the engine class.
algorithm - The trust manager algorithm name.

Method Details

getAlgorithm

public final  ()
Returns the name of this trust manager algorithm.
Returns:
The algorithm name.

getDefaultAlgorithm

public static final  ()
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:
The default algorithm name.
See Also:
Security.getProperty(java.lang.String)

getInstance

public static final  ( algorithm)
 throws 
Returns an instance of a trust manager factory for the given algorithm from the first provider that implements it.
Parameters:
algorithm - The name of the algorithm to get.
Returns:
The instance of the trust manager factory.
Throws:
- If no provider implements the given algorithm.
- if algorithm is null or is an empty string.

getInstance

public static final  ( algorithm,
  provider)
 throws ,
 
Returns an instance of a trust manager factory for the given algorithm from the named provider.
Parameters:
algorithm - The name of the algorithm to get.
provider - The name of the provider to get the instance from.
Returns:
The instance of the trust manager factory.
Throws:
- If the provider does not implement the given algorithm.
- If there is no such named provider.
- if either algorithm or provider is null, or if algorithm is an empty string.

getInstance

public static final  ( algorithm,
  provider)
 throws 
Returns an instance of a trust manager factory for the given algorithm from the specified provider.
Parameters:
algorithm - The name of the algorithm to get.
provider - The provider to get the instance from.
Returns:
The instance of the trust manager factory.
Throws:
- If the provider does not implement the given algorithm.
- if either algorithm or provider is null, or if algorithm is an empty string.

getProvider

public final  ()
Returns the provider of the underlying implementation.
Returns:
The provider.

getTrustManagers

public final [] ()
Returns the trust managers created by this factory.
Returns:
The trust managers.

init

public final void ( store)
 throws 
Initialize this instance with a key store. The key store may be null, in which case a default will be used.
Parameters:
store - The key store.
Throws:
- If there is a problem reading from the key store.

init

public final void ( params)
 throws 
Initialize this instance with some algorithm-specific parameters.
Parameters:
params - The parameters.
Throws:
- If the supplied parameters are inappropriate for this instance.