Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.net.ssl

Interface X509KeyManager

java.lang.Object
|
+--javax.net.ssl.KeyManager
   |
   +--javax.net.ssl.X509KeyManager

All Implemented Interfaces:

KeyManager


public interface X509KeyManager

implements KeyManager

A key manager for X.509 certificates and their associated private keys.

Method Summary

StringchooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket)

Choose an alias for client-side authentication.
StringchooseServerAlias(String keyType, Principal[] issuers, Socket socket)

Choose an alias for server-side authentication.
X509Certificate[]getCertificateChain(String alias)

Gets the X.509 certificate chain associated with the given alias.
String[]getClientAliases(String keyType, Principal[] issuers)

Returns all client aliases that support the given key type.
PrivateKeygetPrivateKey(String alias)

Gets the private key associated with the given alias.
String[]getServerAliases(String keyType, Principal[] issuers)

Returns all server aliases that support the given key type.

Method Details

chooseClientAlias

public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket)

Choose an alias for client-side authentication.

Parameters:

Returns:


chooseServerAlias

public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)

Choose an alias for server-side authentication.

Parameters:

Returns:


getCertificateChain

public X509Certificate[] getCertificateChain(String alias)

Gets the X.509 certificate chain associated with the given alias.

Parameters:

Returns:


getClientAliases

public String[] getClientAliases(String keyType, Principal[] issuers)

Returns all client aliases that support the given key type.

Parameters:

Returns:


getPrivateKey

public PrivateKey getPrivateKey(String alias)

Gets the private key associated with the given alias.

Parameters:

Returns:


getServerAliases

public String[] getServerAliases(String keyType, Principal[] issuers)

Returns all server aliases that support the given key type.

Parameters:

Returns: