| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | * 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). |
| | | * |
| | | * @param keyType |
| | | * the key algorithm type name(s), ordered with the |
| | | * most-preferred key type first. |
| | | * @param issuers |
| | | * the list of acceptable CA issuer subject names or null |
| | | * if it does not matter which issuers are used. |
| | | * @param socket |
| | | * the socket to be used for this connection. This |
| | | * parameter can be null, in which case this method will |
| | | * return the most generic alias to use. |
| | | * @return the alias name for the desired key, or null if there are |
| | | * no matches. |
| | | */ |
| | | public String chooseClientAlias(String[] keyType, Principal[] issuers, |
| | | Socket socket) |
| | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | * 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). |
| | | * |
| | | * @param keyType |
| | | * the key algorithm type name(s), ordered with the |
| | | * most-preferred key type first. |
| | | * @param issuers |
| | | * the list of acceptable CA issuer subject names or null |
| | | * if it does not matter which issuers are used. |
| | | * @param socket |
| | | * the socket to be used for this connection. This |
| | | * parameter can be null, in which case this method will |
| | | * return the most generic alias to use. |
| | | * @return the alias name for the desired key, or null if there are |
| | | * no matches. |
| | | */ |
| | | public String chooseServerAlias(String keyType, Principal[] issuers, |
| | | Socket socket) |
| | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | * Returns the certificate chain associated with the given alias. |
| | | * |
| | | * @param alias |
| | | * the alias name |
| | | * @return the certificate chain (ordered with the user's |
| | | * certificate first and the root certificate authority |
| | | * last), or null if the alias can't be found. |
| | | */ |
| | | public X509Certificate[] getCertificateChain(String alias) |
| | | { |
| | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | * 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). |
| | | * |
| | | * @param keyType |
| | | * the key algorithm type name |
| | | * @param issuers |
| | | * the list of acceptable CA issuer subject names or null |
| | | * if it does not matter which issuers are used. |
| | | * @return an array of the matching alias names, or null if there |
| | | * were no matches. |
| | | */ |
| | | public String[] getClientAliases(String keyType, Principal[] issuers) |
| | | { |
| | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | * Returns the key associated with the given alias. |
| | | * |
| | | * @param alias |
| | | * the alias name |
| | | * @return the requested key, or null if the alias can't be found. |
| | | */ |
| | | public PrivateKey getPrivateKey(String alias) |
| | | { |
| | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | * 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). |
| | | * |
| | | * @param keyType |
| | | * the key algorithm type name |
| | | * @param issuers |
| | | * the list of acceptable CA issuer subject names or null |
| | | * if it does not matter which issuers are used. |
| | | * @return an array of the matching alias names, or null if there |
| | | * were no matches. |
| | | */ |
| | | public String[] getServerAliases(String keyType, Principal[] issuers) |
| | | { |