May 2001
Intermediate to advanced
618 pages
20h 50m
English
Interface com.sun.net.ssl.X509KeyManager
Implementations of this interface are used to select the keys that an SSL socket presents during protocol negotiation. If you want to provide a custom key manager, create a class that implements this interface. Then create a KeyManagerFactorySpi class that returns instances of that class and register the factory with an appropriate security provider. Note that the certificates used with this class are java.security.cert.X509Certificate objects.
public interface com.sun.net.ssl.X509KeyManager
implements com.sun.net.ssl.KeyManager {
// Instance Methods
public abstract String chooseClientAlias(String, Principal[]);
public abstract String chooseServerAlias(String, Principal[]);
public abstract X509Certificate[] getCertificateChain(String);
public abstract String[] getClientAliases(String, Principal[]);
public abstract PrivateKey getPrivateKey(String);
public abstract String[] getServerAliases(String, Principal[]);
}Read now
Unlock full access