Name

Class com.sun.net.ssl.KeyManagerFactory

Synopsis

This class can be used to obtain a key manager, which can be registered with an SSL server socket to determine which keys that socket uses when it accepts a connection. Once you have a factory (from the getInstance( ) method), you must initialize it with the keystore you want to use; the key managers returned from the getKeyManagers( ) method can then be used to initialize an SSL context object.

Class Definition

public class com.sun.net.ssl.KeyManagerFactory
    extends java.lang.Object {

    // Constructors
    protected KeyManagerFactory(KeyManagerFactorySpi,
                                Provider, String);

    // Class Methods
    public static final String getDefaultAlgorithm(  );
    public static final KeyManagerFactory getInstance(String, String);
    public static final KeyManagerFactory getInstance(String);
    public static final KeyManagerFactory getInstance(String,
                                                      Provider);

    // Instance Methods
    public final String getAlgorithm(  );
    public KeyManager[] getKeyManagers(  );
    public final Provider getProvider(  );
    public void init(KeyStore, char[]);
}

See also

SSLContext

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.