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

pack-priv Class KeyManagerFactoryWrapper

extends KeyManagerFactory
Class Inheritance
Imports
org.slf4j.Logger, .LoggerFactory, javax.net.ssl.KeyManager, .KeyManagerFactory, .KeyManagerFactorySpi, .ManagerFactoryParameters, java.security.KeyStore, .Provider, java.util.Objects

KeyManagerFactoryWrapper serves as a KeyManagerFactory wrapper class for a KeyManager instance. A KeyManagerFactory is usually used when transforming a KeyStore instance into a KeyManager[]. Vert.x core has a base KeyCertOptions which relies on a KeyManagerFactory instance and therefore it can only be constructed from the a KeyManagerFactory.
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.KeyManagerFactory:
getAlgorithmgetDefaultAlgorithmgetInstancegetInstancegetInstancegetKeyManagersgetProviderinitinit

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

KeyManagerFactoryWrapperback to summary
pack-priv KeyManagerFactoryWrapper(KeyManager keyManager)
io.vertx.core.net back to summary

private Class KeyManagerFactoryWrapper.KeyManagerFactorySpiWrapper

extends KeyManagerFactorySpi
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final KeyManager[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected KeyManager[]
engineGetKeyManagers()

Implements abstract javax.net.ssl.KeyManagerFactorySpi.engineGetKeyManagers.

Returns one key manager for each type of key material.

protected void
engineInit(KeyStore
the key store or null
keyStore
,
char[]
the password for recovering keys
keyStorePassword
)

Implements abstract javax.net.ssl.KeyManagerFactorySpi.engineInit.

Initializes this factory with a source of key material.

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

Implements abstract javax.net.ssl.KeyManagerFactorySpi.engineInit.

Initializes this factory with a source of key material.

Field Detail

keyManagersback to summary
private final KeyManager[] keyManagers

Constructor Detail

KeyManagerFactorySpiWrapperback to summary
private KeyManagerFactorySpiWrapper(KeyManager keyManager)

Method Detail

engineGetKeyManagersback to summary
protected KeyManager[] engineGetKeyManagers()

Implements abstract javax.net.ssl.KeyManagerFactorySpi.engineGetKeyManagers.

Doc from javax.net.ssl.KeyManagerFactorySpi.engineGetKeyManagers.

Returns one key manager for each type of key material.

Returns:KeyManager[]

the key managers

Annotations
@Override
engineInitback to summary
protected void engineInit(KeyStore keyStore, char[] keyStorePassword)

Implements abstract javax.net.ssl.KeyManagerFactorySpi.engineInit.

Doc from javax.net.ssl.KeyManagerFactorySpi.engineInit.

Initializes this factory with a source of key material.

Parameters
keyStore:KeyStore

the key store or null

keyStorePassword:char[]

the password for recovering keys

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

Implements abstract javax.net.ssl.KeyManagerFactorySpi.engineInit.

Doc from javax.net.ssl.KeyManagerFactorySpi.engineInit.

Initializes this factory with a source of key material.

In some cases, initialization parameters other than a keystore and password 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