Class PasswordProviderWrapper

java.lang.Object
org.eclipse.jgit.internal.transport.sshd.PasswordProviderWrapper
All Implemented Interfaces:
org.apache.sshd.common.config.keys.FilePasswordProvider

public class PasswordProviderWrapper extends Object implements org.apache.sshd.common.config.keys.FilePasswordProvider
A bridge from sshd's FilePasswordProvider to our per-session KeyPasswordProvider API.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.sshd.common.config.keys.FilePasswordProvider

    org.apache.sshd.common.config.keys.FilePasswordProvider.Decoder<T extends Object>, org.apache.sshd.common.config.keys.FilePasswordProvider.ResourceDecodeResult
  • Field Summary

    Fields inherited from interface org.apache.sshd.common.config.keys.FilePasswordProvider

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
  • Method Summary

    Modifier and Type
    Method
    Description
    getPassword(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resource, int attemptIndex)
     
    org.apache.sshd.common.config.keys.FilePasswordProvider.ResourceDecodeResult
    handleDecodeAttemptResult(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resource, int retryIndex, String password, Exception err)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.sshd.common.config.keys.FilePasswordProvider

    decode
  • Constructor Details

  • Method Details

    • getPassword

      public String getPassword(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resource, int attemptIndex) throws IOException
      Specified by:
      getPassword in interface org.apache.sshd.common.config.keys.FilePasswordProvider
      Throws:
      IOException
    • handleDecodeAttemptResult

      public org.apache.sshd.common.config.keys.FilePasswordProvider.ResourceDecodeResult handleDecodeAttemptResult(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resource, int retryIndex, String password, Exception err) throws IOException, GeneralSecurityException
      Specified by:
      handleDecodeAttemptResult in interface org.apache.sshd.common.config.keys.FilePasswordProvider
      Throws:
      IOException
      GeneralSecurityException