public class RootTrustManagerFactorySpi extends TrustManagerFactorySpi
Modifier and Type | Class and Description |
---|---|
static class |
RootTrustManagerFactorySpi.ApplicationConfigParameters |
Constructor and Description |
---|
RootTrustManagerFactorySpi() |
Modifier and Type | Method and Description |
---|---|
TrustManager[] |
engineGetTrustManagers()
Returns one trust manager for each type of trust material.
|
void |
engineInit(KeyStore ks)
Initializes this factory with a source of certificate
authorities and related trust material.
|
void |
engineInit(ManagerFactoryParameters spec)
Initializes this factory with a source of provider-specific
key material.
|
public void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException
TrustManagerFactorySpi
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.
engineInit
in class TrustManagerFactorySpi
spec
- an implementation of a provider-specific parameter
specificationInvalidAlgorithmParameterException
- if there is problem
with the parametersTrustManagerFactory.init(ManagerFactoryParameters spec)
public void engineInit(KeyStore ks) throws KeyStoreException
TrustManagerFactorySpi
engineInit
in class TrustManagerFactorySpi
ks
- the key store or nullKeyStoreException
- if this operation failsTrustManagerFactory.init(KeyStore)
public TrustManager[] engineGetTrustManagers()
TrustManagerFactorySpi
engineGetTrustManagers
in class TrustManagerFactorySpi