Package org.globus.gsi.trustmanager
Class PKITrustManagerFactory
java.lang.Object
javax.net.ssl.TrustManagerFactorySpi
org.globus.gsi.trustmanager.PKITrustManagerFactory
This factory creates trust managers which support the Globus SSL library.
- Since:
- 1.0
- Version:
- ${version}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TrustManager[]
Returns one trust manager for each type of trust material.protected void
engineInit
(KeyStore keyStore) Initializes this factory with a source of certificate authorities and related trust material.protected void
engineInit
(ManagerFactoryParameters managerFactoryParameters) Initializes this factory with a source of provider-specific key material.
-
Field Details
-
trustManagers
-
-
Constructor Details
-
PKITrustManagerFactory
public PKITrustManagerFactory()
-
-
Method Details
-
engineInit
Initializes this factory with a source of certificate authorities and related trust material.- Specified by:
engineInit
in classTrustManagerFactorySpi
- Parameters:
keyStore
- The key store or null- Throws:
KeyStoreException
- if the initialization fails.
-
engineInit
protected void engineInit(ManagerFactoryParameters managerFactoryParameters) throws InvalidAlgorithmParameterException 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.This implementation requires X509ProxyCertPathParameters.
- Specified by:
engineInit
in classTrustManagerFactorySpi
- Parameters:
managerFactoryParameters
- The X509ProxyCertPathParameters which are used to create TrustManagers.- Throws:
InvalidAlgorithmParameterException
- If the Parameters are invalid
-
engineGetTrustManagers
Returns one trust manager for each type of trust material.- Specified by:
engineGetTrustManagers
in classTrustManagerFactorySpi
- Returns:
- The collection of TrustManagers
-