Skip to content

Most visited

Recently visited

navigation
Added in API level 1

TrustManagerFactorySpi

public abstract class TrustManagerFactorySpi
extends Object

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


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.

Inherited methods

From class java.lang.Object

Public constructors

TrustManagerFactorySpi

Added in API level 1
TrustManagerFactorySpi ()

Creates a new TrustManagerFactorySpi instance.

Protected methods

engineGetTrustManagers

Added in API level 1
TrustManager[] engineGetTrustManagers ()

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

Returns
TrustManager[] the list of TrustManagers

engineInit

Added in API level 1
void engineInit (KeyStore ks)

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

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

engineInit

Added in API level 1
void engineInit (ManagerFactoryParameters spec)

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

Parameters
spec ManagerFactoryParameters: the provider-specific parameters.
Throws
InvalidAlgorithmParameterException if the initialization fails.
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.