Top Description Fields Constructors Methods
org.conscrypt

public Class KeyManagerFactoryImpl

extends KeyManagerFactorySpi
Class Inheritance
Annotations
@Internal
Imports
java.io.File, .FileInputStream, .FileNotFoundException, .IOException, java.security.InvalidAlgorithmParameterException, .KeyStore, .KeyStoreException, .NoSuchAlgorithmException, .UnrecoverableKeyException, java.security.cert.CertificateException, javax.net.ssl.KeyManager, .KeyManagerFactorySpi, .ManagerFactoryParameters, org.conscrypt.io.IoUtils

KeyManagerFactory implementation.
See Also
KeyManagerFactorySpi

Field Summary

Modifier and TypeField and Description
private KeyStore
private char[]

Constructor Summary

AccessConstructor and Description
public

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
ks
,
char[]
the password for recovering keys
password
)

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
spec
)

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

Initializes this factory with a source of key material.

Field Detail

keyStoreback to summary
private KeyStore keyStore
pwdback to summary
private char[] pwd

Constructor Detail

KeyManagerFactoryImplback to summary
public KeyManagerFactoryImpl()

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
See Also
KeyManagerFactorySpi#engineGetKeyManagers()
engineInitback to summary
protected void engineInit(KeyStore ks, char[] password) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException

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

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

Initializes this factory with a source of key material.

Parameters
ks:KeyStore

the key store or null

password:char[]

the password for recovering keys

Annotations
@Override
Exceptions
KeyStoreException:
if this operation fails
NoSuchAlgorithmException:
if the specified algorithm is not available from the specified provider.
UnrecoverableKeyException:
if the key cannot be recovered
See Also
KeyManagerFactorySpi#engineInit(KeyStore ks, char[] password)
engineInitback to summary
protected void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException

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

an implementation of a provider-specific parameter specification

Annotations
@Override
Exceptions
InvalidAlgorithmParameterException:
if there is problem with the parameters
See Also
KeyManagerFactorySpi#engineInit(ManagerFactoryParameters spec)