Top Description Inners Fields Constructors Methods
io.vertx.core.net

pack-priv Class TrustManagerFactoryWrapper

extends TrustManagerFactory
Class Inheritance
Imports
org.slf4j.Logger, .LoggerFactory, javax.net.ssl.ManagerFactoryParameters, .TrustManager, .TrustManagerFactory, .TrustManagerFactorySpi, java.security.KeyStore, .Provider, java.util.Objects

TrustManagerFactoryWrapper serves as a TrustManagerFactory wrapper class for a TrustManager instance. A TrustManagerFactory is usually used when transforming a TrustStore instance into a TrustManager[]. Vert.x core has a base TrustOptions which relies on a TrustManagerFactory instance and therefore it can only be constructed from the a TrustManagerFactory.
Author
Hakan Altindag

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String
private static final Logger
private static final Provider

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from javax.net.ssl.TrustManagerFactory:
getAlgorithmgetDefaultAlgorithmgetInstancegetInstancegetInstancegetProvidergetTrustManagersinitinit

Field Detail

KEY_MANAGER_FACTORY_ALGORITHMback to summary
private static final String KEY_MANAGER_FACTORY_ALGORITHM
LOGGERback to summary
private static final Logger LOGGER
PROVIDERback to summary
private static final Provider PROVIDER

Constructor Detail

TrustManagerFactoryWrapperback to summary
pack-priv TrustManagerFactoryWrapper(TrustManager trustManager)
io.vertx.core.net back to summary

private Class TrustManagerFactoryWrapper.TrustManagerFactorySpiWrapper

extends TrustManagerFactorySpi
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final TrustManager[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

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

Returns one trust manager for each type of trust material.

protected void
engineInit(KeyStore
the key store or null
keyStore
)

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

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

protected void
engineInit(ManagerFactoryParameters
an implementation of a provider-specific parameter specification
managerFactoryParameters
)

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

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

Field Detail

trustManagersback to summary
private final TrustManager[] trustManagers

Constructor Detail

TrustManagerFactorySpiWrapperback to summary
private TrustManagerFactorySpiWrapper(TrustManager trustManager)

Method Detail

engineGetTrustManagersback to summary
protected 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
engineInitback to summary
protected void engineInit(KeyStore keyStore)

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
keyStore:KeyStore

the key store or null

Annotations
@Override
engineInitback to summary
protected void engineInit(ManagerFactoryParameters managerFactoryParameters)

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
managerFactoryParameters:ManagerFactoryParameters

an implementation of a provider-specific parameter specification

Annotations
@Override