| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.net.ssl.TrustManagerFactory
This class acts as a factory for trust managers based on a source of trust material. Each trust manager manages a specific type of trust material for use by secure sockets. The trust material is based on a KeyStore and/or provider specific sources.
| Constructor Summary | |
| protected  | TrustManagerFactory(TrustManagerFactorySpi factorySpi,
                    java.security.Provider provider,
                    java.lang.String algorithm)Creates a TrustManagerFactory object. | 
| Method Summary | |
|  java.lang.String | getAlgorithm()Returns the algorithm name of this TrustManagerFactoryobject. | 
| static TrustManagerFactory | getInstance(java.lang.String algorithm)Generates a TrustManagerFactoryobject that implements the
 specified trust management algorithm. | 
| static TrustManagerFactory | getInstance(java.lang.String algorithm,
            java.lang.String provider)Generates a TrustManagerFactoryobject for the specified
 trust management algorithm from the specified provider. | 
|  java.security.Provider | getProvider()Returns the provider of this TrustManagerFactoryobject. | 
|  TrustManager[] | getTrustManagers()Returns one trust manager for each type of trust material. | 
|  void | init(java.security.KeyStore ks)Initializes this factory with a source of certificate authorities and related trust material. | 
| Methods inherited from class java.lang.Object | 
| clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
| Constructor Detail | 
protected TrustManagerFactory(TrustManagerFactorySpi factorySpi,
                              java.security.Provider provider,
                              java.lang.String algorithm)
factorySpi - the delegateprovider - the provideralgorithm - the algorithm| Method Detail | 
public final java.lang.String getAlgorithm()
TrustManagerFactory object.
 This is the same name that was specified in one of the
 getInstance calls that created this
 TrustManagerFactory object.
TrustManagerFactory object.
public static final TrustManagerFactory getInstance(java.lang.String algorithm)
                                             throws java.security.NoSuchAlgorithmException
TrustManagerFactory object that implements the
 specified trust management algorithm.
 If the default provider package provides an implementation of the
 requested trust management algorithm, an instance of
 TrustManagerFactory containing that implementation is returned.
 If the algorithm is not available in the default provider package,
 other provider packages are searched.algorithm - the standard name of the requested trust management
 algorithm.TrustManagerFactory object
public static final TrustManagerFactory getInstance(java.lang.String algorithm,
                                                    java.lang.String provider)
                                             throws java.security.NoSuchAlgorithmException,
                                                    java.security.NoSuchProviderException
TrustManagerFactory object for the specified
 trust management algorithm from the specified provider.algorithm - the standard name of the requested trust management
 algorithm.provider - the name of the providerTrustManagerFactory objectpublic final java.security.Provider getProvider()
TrustManagerFactory object.TrustManagerFactory object
public void init(java.security.KeyStore ks)
          throws java.security.KeyStoreException
ks - the key store or nullpublic TrustManager[] getTrustManagers()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||