org.globus.gsi.trustmanager
Class PKITrustManagerFactory

java.lang.Object
  extended by javax.net.ssl.TrustManagerFactorySpi
      extended by org.globus.gsi.trustmanager.PKITrustManagerFactory

public class PKITrustManagerFactory
extends javax.net.ssl.TrustManagerFactorySpi

This factory creates trust managers which support the Globus SSL library.

Since:
1.0
Version:
${version}

Constructor Summary
PKITrustManagerFactory()
           
 
Method Summary
protected  javax.net.ssl.TrustManager[] engineGetTrustManagers()
          Returns one trust manager for each type of trust material.
protected  void engineInit(java.security.KeyStore keyStore)
          Initializes this factory with a source of certificate authorities and related trust material.
protected  void engineInit(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters)
          Initializes this factory with a source of provider-specific key material.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKITrustManagerFactory

public PKITrustManagerFactory()
Method Detail

engineInit

protected void engineInit(java.security.KeyStore keyStore)
                   throws java.security.KeyStoreException
Initializes this factory with a source of certificate authorities and related trust material.

Specified by:
engineInit in class javax.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.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 class javax.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:
engineGetTrustManagers in class javax.net.ssl.TrustManagerFactorySpi
Returns:
The collection of TrustManagers