|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface X509KeyManager
A key manager for X.509 certificates and their associated private keys.
Method Summary | |
---|---|
String |
chooseClientAlias(String[] keyTypes,
Principal[] issuers,
Socket socket)
Choose an alias for client-side authentication. |
String |
chooseServerAlias(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. |
PrivateKey |
getPrivateKey(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 Detail |
---|
String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket)
keyTypes
- A list of acceptable key types.issuers
- A list of acceptable certificate issuers.socket
- The connecting socket.
String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)
keyType
- The desired certificate type.issuers
- A list of acceptable certificate issuers.socket
- The connecting socket.
X509Certificate[] getCertificateChain(String alias)
alias
- The alias.
String[] getClientAliases(String keyType, Principal[] issuers)
keyType
- The desired key type.issuers
- A list of acceptable certificate issuers.
PrivateKey getPrivateKey(String alias)
alias
- The alias.
String[] getServerAliases(String keyType, Principal[] issuers)
keyType
- The desired key type.issuers
- A list of acceptable certificate issuers.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |