Package org.globus.gsi.trustmanager
Class PKITrustManagerFactory
- java.lang.Object
-
- javax.net.ssl.TrustManagerFactorySpi
-
- org.globus.gsi.trustmanager.PKITrustManagerFactory
-
public class PKITrustManagerFactory extends javax.net.ssl.TrustManagerFactorySpiThis factory creates trust managers which support the Globus SSL library.- Since:
- 1.0
- Version:
- ${version}
-
-
Constructor Summary
Constructors Constructor Description PKITrustManagerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.net.ssl.TrustManager[]engineGetTrustManagers()Returns one trust manager for each type of trust material.protected voidengineInit(java.security.KeyStore keyStore)Initializes this factory with a source of certificate authorities and related trust material.protected voidengineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters)Initializes this factory with a source of provider-specific key material.
-
-
-
Method Detail
-
engineInit
protected void engineInit(java.security.KeyStore keyStore) throws java.security.KeyStoreExceptionInitializes this factory with a source of certificate authorities and related trust material.- Specified by:
engineInitin classjavax.net.ssl.TrustManagerFactorySpi- Parameters:
keyStore- The key store or null- Throws:
java.security.KeyStoreException- if the initialization fails.
-
engineInit
protected void engineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters) throws java.security.InvalidAlgorithmParameterExceptionInitializes 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:
engineInitin classjavax.net.ssl.TrustManagerFactorySpi- Parameters:
managerFactoryParameters- The X509ProxyCertPathParameters which are used to create TrustManagers.- Throws:
java.security.InvalidAlgorithmParameterException- If the Parameters are invalid
-
engineGetTrustManagers
protected javax.net.ssl.TrustManager[] engineGetTrustManagers()
Returns one trust manager for each type of trust material.- Specified by:
engineGetTrustManagersin classjavax.net.ssl.TrustManagerFactorySpi- Returns:
- The collection of TrustManagers
-
-