JSSEX509KeyManager instead; the JSSE has been integrated
into the J2SE as of J2SE version 1.4public class JSSEX509KeyManagerExtension
extends java.lang.Object
implements com.sun.net.ssl.X509KeyManager
JSSEX509KeyManagerExtension class implements the
com.sun.net.ssl.X509KeyManager interface.
The com.sun.net.ssl.X509KeyManager class is used to
initialize an SSLContext object to support X.509
authentication to remote socket peers through JSSE. You can create
an instance of this class either by calling the constructor or by
using the KeyManagerFactory engine.
For details, see the SUN Microsystems API user's guide for the Java Secure Socket Extension (JSSE) version 1.0.2
JSSEX509KeyManagerFactoryExtension,
KeyManagerFactory,
SSLContext| Constructor and Description |
|---|
JSSEX509KeyManagerExtension(java.security.cert.Certificate[] certChain,
java.security.PrivateKey key)
Deprecated.
Creates an instance of the
JSSEX509KeyManagerExtension class. |
JSSEX509KeyManagerExtension(java.security.KeyStore keyStore)
Deprecated.
Creates an instance of the
X509KeyManagerJSSEExtension class. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
chooseClientAlias(java.lang.String keyType,
java.security.Principal[] issuers)
Deprecated.
Returns the key type.
|
java.lang.String |
chooseServerAlias(java.lang.String keyType,
java.security.Principal[] issuers)
Deprecated.
Returns the key type.
|
java.security.cert.X509Certificate[] |
getCertificateChain(java.lang.String name)
Deprecated.
Retrieves the certificate chain with the given name.
|
java.lang.String[] |
getClientAliases(java.lang.String keyType,
java.security.Principal[] issuers)
Deprecated.
Returns the key type.
|
java.security.PrivateKey |
getPrivateKey(java.lang.String name)
Deprecated.
Retrieves the private key with the given name.
|
java.lang.String[] |
getServerAliases(java.lang.String keyType,
java.security.Principal[] issuers)
Deprecated.
Returns the key type.
|
public JSSEX509KeyManagerExtension(java.security.cert.Certificate[] certChain,
java.security.PrivateKey key)
throws java.security.cert.CertificateException
JSSEX509KeyManagerExtension class.
certChain - the certificate chainkey - the private keyjava.security.cert.CertificateException - thrown if the certificate chain contains any non-X509
certificatepublic JSSEX509KeyManagerExtension(java.security.KeyStore keyStore)
throws java.security.cert.CertificateException
X509KeyManagerJSSEExtension class.
keyStore - the key store containing keys and certificatesjava.security.cert.CertificateExceptionpublic java.lang.String[] getClientAliases(java.lang.String keyType,
java.security.Principal[] issuers)
getClientAliases in interface com.sun.net.ssl.X509KeyManagerkeyType - ignoredissuers - ignoredpublic java.lang.String chooseClientAlias(java.lang.String keyType,
java.security.Principal[] issuers)
This method is equivalent to the
getClientAlias(String keyType, Principal[] issuers)
method.
chooseClientAlias in interface com.sun.net.ssl.X509KeyManagerkeyType - ignoredissuers - ignoredpublic java.lang.String[] getServerAliases(java.lang.String keyType,
java.security.Principal[] issuers)
getServerAliases in interface com.sun.net.ssl.X509KeyManagerkeyType - ignoredissuers - ignoredpublic java.lang.String chooseServerAlias(java.lang.String keyType,
java.security.Principal[] issuers)
This method is equivalent to the
getServerAlias(String keyType, Principal[] issuers)
method.
chooseServerAlias in interface com.sun.net.ssl.X509KeyManagerkeyType - ignoredissuers - ignoredpublic java.security.cert.X509Certificate[] getCertificateChain(java.lang.String name)
getCertificateChain in interface com.sun.net.ssl.X509KeyManagername - the name of the certificate to be retrievedpublic java.security.PrivateKey getPrivateKey(java.lang.String name)
getPrivateKey in interface com.sun.net.ssl.X509KeyManagername - the name of the private key to be retrieved