Top Description Fields Constructors Methods
org.conscrypt

public Class TrustManagerFactoryImpl

extends TrustManagerFactorySpi
Class Inheritance
Annotations
@Internal
Imports
java.security.InvalidAlgorithmParameterException, .KeyStore, .KeyStoreException, javax.net.ssl.ManagerFactoryParameters, .TrustManager, .TrustManagerFactorySpi

TrustManagerFactory service provider interface implementation.
See Also
javax.net.ssl.TrustManagerFactorySpi

Field Summary

Modifier and TypeField and Description
private KeyStore

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TrustManager[]
engineGetTrustManagers()

Implements abstract javax.net.ssl.TrustManagerFactorySpi.engineGetTrustManagers.

Returns one trust manager for each type of trust material.
public void
engineInit(KeyStore
the key store or null
ks
)

Implements abstract javax.net.ssl.TrustManagerFactorySpi.engineInit.

Initializes this factory with a source of certificate authorities and related trust material.
public void
engineInit(ManagerFactoryParameters
an implementation of a provider-specific parameter specification
spec
)

Implements abstract javax.net.ssl.TrustManagerFactorySpi.engineInit.

Initializes this factory with a source of provider-specific key material.

Field Detail

keyStoreback to summary
private KeyStore keyStore

Constructor Detail

TrustManagerFactoryImplback to summary
public TrustManagerFactoryImpl()

Method Detail

engineGetTrustManagersback to summary
public TrustManager[] engineGetTrustManagers()

Implements abstract javax.net.ssl.TrustManagerFactorySpi.engineGetTrustManagers.

Doc from javax.net.ssl.TrustManagerFactorySpi.engineGetTrustManagers.

Returns one trust manager for each type of trust material.

Returns:TrustManager[]

the trust managers

Annotations
@Override
See Also
javax.net.ssl#engineGetTrustManagers()
engineInitback to summary
public void engineInit(KeyStore ks) throws KeyStoreException

Implements abstract javax.net.ssl.TrustManagerFactorySpi.engineInit.

Doc from javax.net.ssl.TrustManagerFactorySpi.engineInit.

Initializes this factory with a source of certificate authorities and related trust material.

Parameters
ks:KeyStore

the key store or null

Annotations
@Override
Exceptions
KeyStoreException:
if this operation fails
See Also
javax.net.ssl.TrustManagerFactorySpi#engineInit(KeyStore)
engineInitback to summary
public void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException

Implements abstract javax.net.ssl.TrustManagerFactorySpi.engineInit.

Doc from javax.net.ssl.TrustManagerFactorySpi.engineInit.

Initializes this factory with a source of provider-specific key material.

In some cases, initialization parameters other than a keystore may be needed by a provider. Users of that particular provider are expected to pass an implementation of the appropriate ManagerFactoryParameters as defined by the provider. The provider can then call the specified methods in the ManagerFactoryParameters implementation to obtain the needed information.

Parameters
spec:ManagerFactoryParameters

an implementation of a provider-specific parameter specification

Annotations
@Override
Exceptions
InvalidAlgorithmParameterException:
if there is problem with the parameters
See Also
javax.net.ssl#engineInit(ManagerFactoryParameters)