public interface KeyStoreManagerCallback
An application implements a KeyStoreManagerCallback and passes it to the KeyStoreManager
so that it may interact with the application to retrieve specific data, such as key password, or to display certain information.
For example, implementations for an application with a graphical user interface (GUI) may pop up windows to prompt for requested information or to display error messages.
An implementation may also choose to obtain requested information from an alternate source without asking the end user.
| Modifier and Type | Method and Description |
|---|---|
char[] |
getKeyPassword(String alias,
boolean isRetry)
Requests user the password required to recover the key associated with the given alias.
|
CertificateEntry |
selectClientAuthenticationCertificate(CertificateEntry[] entries)
Requests user to select the client authentication certificate from the given certificate list.
|
CertificateEntry |
selectDocumentSigningCertificate(CertificateEntry[] entries)
Requests user to select the signing certificate from the given certificate list.
|
char[] getKeyPassword(String alias, boolean isRetry)
The method can be called repeatedly until a correct password is provided. The number of retries depends on the currently managed keystore and hence it can be unlimited.
alias - the alias name of the associated key.isRetry - true if the previously provided password was incorrect.CertificateEntry selectDocumentSigningCertificate(CertificateEntry[] entries)
entries - an array of certificate entries containing available signing certificates.CertificateEntry.REFRESH_MARKER to refresh the certificate list and invoke this method again.KeyAccessor.getDocumentSigningCertificateEntries()CertificateEntry selectClientAuthenticationCertificate(CertificateEntry[] entries)
entries - an array of certificate entries containing available client authentication certificates.CertificateEntry.REFRESH_MARKER to refresh the certificate list and invoke this method again.KeyAccessor.getClientAuthenticationCertificateEntries()