Name

Interface com.sun.net.ssl.X509KeyManager

Synopsis

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.

Interface Definition

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[]);
}

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.