public interface JavaTruststorePasswordProvider
Used by Credential Manager when trying to copy the trusted certificates from the Java's default truststore into the Credential Manageger's own Truststore. It will first try the default Java passwords and then if they do not work - it will loop through all the providers until one can provide the password. If none can, the certificates will not be copied.
A typical implementation of this class would pop up a dialog
and ask the user for the password. Such providers should check
GraphicsEnvironment#isHeadless() before returning to avoid
attempts to pop up dialogues on server/headless installations.
It is safe to return
null if the provider does not have an
This method will only be called if the provider returned
This method will be called when initialising the Credential Manager for the first time, in the cases where the Java truststore password has been changed from the VM default. The Credential Manager will need this password to unlock the Java truststore and copy the trusted certificate into the Credential Managers's own Truststore.
Generally only advanced users would change this password.
nullif not available (for instance if user action was cancelled).
void setJavaTruststorePassword(String password)
password- to set
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.