Class 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.
    • Method Detail

      • 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