JSSEX509KeyManagerFactory instead; the JSSE has been
integrated into the J2SE as of J2SE version 1.4public class JSSEX509KeyManagerFactoryExtension
extends com.sun.net.ssl.KeyManagerFactorySpi
JSSEX09KeyManagerFactory class implements the
abstract class, KeyManagerFractorySpi.
An instance of this class should always be created using the
com.sun.net.ssl.KeyManagerFactory engine class. For
example:
java.security.Security.addProvider(new iaik.security.jsse.provider.IAIKJSSEProvider());
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
or
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509", "IAIK_JSSE");
or
KeyManagerFactory kmf =
KeyManagerFactory.getInstance("SunX509", new iaik.security.jsse.provider.IAIKJSSEProvider());
A newly created key manager factory should be initialized as follows:
KetStore ks = new KeyStore(...);
ks.load(..., ...);
kmf.init( ks, null );
where null is the password ignored in this case.
You can retrieve the key managers by calling the
getKeyManagers method:
KeyManager[] keyManagers = kmf.getKeyManagers();
For more information, see the SUN Microsystems API user's guide for the Java Secure Socket Extension (JSSE) version 1.0.2
KeyManagerFactory,
JSSEX509KeyManager| Constructor and Description |
|---|
JSSEX509KeyManagerFactoryExtension()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.sun.net.ssl.KeyManager[] |
engineGetKeyManagers()
Deprecated.
|
protected void |
engineInit(java.security.KeyStore ks,
char[] password)
Deprecated.
|
public JSSEX509KeyManagerFactoryExtension()
protected void engineInit(java.security.KeyStore ks,
char[] password)
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.UnrecoverableKeyException
engineInit in class com.sun.net.ssl.KeyManagerFactorySpijava.security.KeyStoreExceptionjava.security.NoSuchAlgorithmExceptionjava.security.UnrecoverableKeyExceptionprotected com.sun.net.ssl.KeyManager[] engineGetKeyManagers()
engineGetKeyManagers in class com.sun.net.ssl.KeyManagerFactorySpi