On Thu, 3 Dec 2020 at 09:49, Peter Hull <peterhul...@gmail.com> wrote:
> On Thu, 3 Dec 2020 at 09:25, Thomas Kellerer <sham...@gmx.net> wrote: > >> It would still be interesting where NetBeans stores that password. >> >> Ultimately NetBeans uses the Keyring class which delegates to a > platform-dependent KeyringProvider. > > While it's in my mind (I checked up on this) the important classes/interfaces are: * org.eclipse.jgit.transport.CredentialsProvider (need to implement this and pass an instance to JGit so it can do its work) * org.netbeans.libs.git.jgit.JGitCredentialsProvider (implements CredentialsProvider, gets credentials from a GitClientCallback) * org.netbeans.modules.git.client.CredentialsCallback (gets credentials from GitModuleConfig, implements GitClientCallback) * org.netbeans.modules.git.GitModuleConfig (stores/retrieves ConnectionSettings via KeyringSupport) * org.netbeans.modules.versioning.util.KeyringSupport (helper class between GitModuleConfig and Keyring) * org.netbeans.api.keyring.Keyring (delegates to platform dependent provider) Phew!