public interface X509KeyManager extends KeyManager
During secure socket negotiations, implentations call methods in this interface to:
Note: the X509ExtendedKeyManager should be used in favor of this class.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
chooseClientAlias(java.lang.String[] keyType,
java.security.Principal[] issuers,
java.net.Socket socket)
Choose an alias to authenticate the client side of a secure
socket given the public key type and the list of
certificate issuer authorities recognized by the peer (if any).
|
java.lang.String |
chooseServerAlias(java.lang.String keyType,
java.security.Principal[] issuers,
java.net.Socket socket)
Choose an alias to authenticate the server side of a secure
socket given the public key type and the list of
certificate issuer authorities recognized by the peer (if any).
|
java.security.cert.X509Certificate[] |
getCertificateChain(java.lang.String alias)
Returns the certificate chain associated with the given alias.
|
java.lang.String[] |
getClientAliases(java.lang.String keyType,
java.security.Principal[] issuers)
Get the matching aliases for authenticating the client side of a secure
socket given the public key type and the list of
certificate issuer authorities recognized by the peer (if any).
|
java.security.PrivateKey |
getPrivateKey(java.lang.String alias)
Returns the key associated with the given alias.
|
java.lang.String[] |
getServerAliases(java.lang.String keyType,
java.security.Principal[] issuers)
Get the matching aliases for authenticating the server side of a secure
socket given the public key type and the list of
certificate issuer authorities recognized by the peer (if any).
|
java.lang.String[] getClientAliases(java.lang.String keyType,
java.security.Principal[] issuers)
keyType - the key algorithm type nameissuers - the list of acceptable CA issuer subject names,
or null if it does not matter which issuers are used.java.lang.String chooseClientAlias(java.lang.String[] keyType,
java.security.Principal[] issuers,
java.net.Socket socket)
keyType - the key algorithm type name(s), ordered
with the most-preferred key type first.issuers - the list of acceptable CA issuer subject names
or null if it does not matter which issuers are used.socket - the socket to be used for this connection. This
parameter can be null, which indicates that
implementations are free to select an alias applicable
to any socket.java.lang.String[] getServerAliases(java.lang.String keyType,
java.security.Principal[] issuers)
keyType - the key algorithm type nameissuers - the list of acceptable CA issuer subject names
or null if it does not matter which issuers are used.java.lang.String chooseServerAlias(java.lang.String keyType,
java.security.Principal[] issuers,
java.net.Socket socket)
keyType - the key algorithm type name.issuers - the list of acceptable CA issuer subject names
or null if it does not matter which issuers are used.socket - the socket to be used for this connection. This
parameter can be null, which indicates that
implementations are free to select an alias applicable
to any socket.java.security.cert.X509Certificate[] getCertificateChain(java.lang.String alias)
alias - the alias namejava.security.PrivateKey getPrivateKey(java.lang.String alias)
alias - the alias name© Portions Copyright 2003, 2020 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2020, Oracle and/or its affiliates. All rights reserved.