Android APIs
public abstract class

TrustManagerFactorySpi

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

Class Overview

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

Summary

Public Constructors
TrustManagerFactorySpi()
Creates a new TrustManagerFactorySpi instance.
Protected Methods
abstract TrustManager[] engineGetTrustManagers()
Returns the list of TrustManagers with one entry for each type of trust material.
abstract void engineInit(KeyStore ks)
Initializes this factory instance with the specified keystore as source of certificate authorities and trust material.
abstract void engineInit(ManagerFactoryParameters spec)
Initializes this factory instance with the specified provider-specific parameters for a source of trust material.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TrustManagerFactorySpi ()

Added in API level 1

Creates a new TrustManagerFactorySpi instance.

Protected Methods

protected abstract TrustManager[] engineGetTrustManagers ()

Added in API level 1

Returns the list of TrustManagers with one entry for each type of trust material.

Returns
  • the list of TrustManagers

protected abstract void engineInit (KeyStore ks)

Added in API level 1

Initializes this factory instance with the specified keystore as source of certificate authorities and trust material.

Parameters
ks the keystore or null.
Throws
KeyStoreException if the initialization fails.

protected abstract void engineInit (ManagerFactoryParameters spec)

Added in API level 1

Initializes this factory instance with the specified provider-specific parameters for a source of trust material.

Parameters
spec the provider-specific parameters.
Throws
InvalidAlgorithmParameterException if the initialization fails.