JSSEX509TrustManagerFactory instead; the JSSE has been
integrated into the J2SE as of J2SE version 1.4public class JSSEX509TrustManagerFactoryExtension
extends com.sun.net.ssl.TrustManagerFactorySpi
JSSEX509TrustManagerFactory class implements the
TrustManagerFractorySpi abstract class.
To create instances of this class, always use the
com.sun.net.ssl.TrustManagerFactory engine class. For
example:
java.security.Security.addProvider(new iaik.security.jsse.provider.IAIKJSSEProvider());
TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509");
or
TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509", "IAIK_JSSE");
or
TrustManagerFactory tmf =
TrustManagerFactory.getInstance("SunX509", new iaik.security.jsse.provider.IAIKJSSEProvider());
A newly created trust manager factory should be initialized by a
KeyStore object, as follows:
KetStore ks = new KeyStore(...);
ks.load(..., ...);
tmf.init( ks );
You can retrieve the trust managers by calling
TrustManager[] trustManagers = tmf.getManagers();
For more information, see the SUN Microsystems API user's guide for the Java Secure Socket Extension (JSSE) version 1.0.2
TrustManagerFactory,
JSSEX509TrustManager| Constructor and Description |
|---|
JSSEX509TrustManagerFactoryExtension()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.sun.net.ssl.TrustManager[] |
engineGetTrustManagers()
Deprecated.
|
protected void |
engineInit(java.security.KeyStore ks)
Deprecated.
|
public JSSEX509TrustManagerFactoryExtension()
protected com.sun.net.ssl.TrustManager[] engineGetTrustManagers()
engineGetTrustManagers in class com.sun.net.ssl.TrustManagerFactorySpiprotected void engineInit(java.security.KeyStore ks)
throws java.security.KeyStoreException
engineInit in class com.sun.net.ssl.TrustManagerFactorySpijava.security.KeyStoreException