You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




org.mozilla.jss.ssl
Interface SSLClientCertificateSelectionCallback

All Known Implementing Classes:
TestClientCertificateSelectionCallback

public interface SSLClientCertificateSelectionCallback

Implement this if you want to specify dynamically which certificate should be presented for client authentication.


Method Summary
 java.lang.String select(java.util.Vector nicknames)
          This method will be called from the native callback code when a certificate is requested.
 

Method Detail

select

java.lang.String select(java.util.Vector nicknames)
This method will be called from the native callback code when a certificate is requested. You must return a String which is the nickname of the certificate you wish to present.

Parameters:
nicknames - A Vector of Strings. These strings are an aid to the user to select the correct nickname. This list is made from the list of all certs which are valid, match the CA's trusted by the server, and which you have the private key of. If nicknames.length is 0, you should present an error to the user saying 'you do not have any unexpired certificates'.
Returns:
You must return the nickname of the certificate you wish to use. You can return null if you do not wish to send a certificate.