Class SshKeyPasswordProvider

java.lang.Object
swiss.trustbroker.common.setup.config.SshKeyPasswordProvider
All Implemented Interfaces:
org.eclipse.jgit.transport.sshd.KeyPasswordProvider

public class SshKeyPasswordProvider extends Object implements org.eclipse.jgit.transport.sshd.KeyPasswordProvider
  • Constructor Details

    • SshKeyPasswordProvider

      public SshKeyPasswordProvider(org.eclipse.jgit.transport.CredentialsProvider provider)
  • Method Details

    • getPassphrase

      public char[] getPassphrase(org.eclipse.jgit.transport.URIish uri, int attempt) throws IOException
      Specified by:
      getPassphrase in interface org.eclipse.jgit.transport.sshd.KeyPasswordProvider
      Throws:
      IOException
    • setAttempts

      public void setAttempts(int maxNumberOfAttempts)
      Specified by:
      setAttempts in interface org.eclipse.jgit.transport.sshd.KeyPasswordProvider
    • keyLoaded

      public boolean keyLoaded(org.eclipse.jgit.transport.URIish uri, int attempt, Exception error)
      Specified by:
      keyLoaded in interface org.eclipse.jgit.transport.sshd.KeyPasswordProvider