Class PasswordProviderWrapper

    • Nested Class Summary

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

        org.apache.sshd.common.config.keys.FilePasswordProvider.ResourceDecodeResult
    • Field Summary

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

        EMPTY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAttempts()
      Gets the maximum number of attempts to get a password that should be attempted for one identity resource through this provider.
      String 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)  
      void setAttempts​(int numberOfPasswordPrompts)
      Define the maximum number of attempts to get a password that should be attempted for one identity resource through this provider.
    • Method Detail

      • getAttempts

        public int getAttempts()
        Description copied from interface: RepeatingFilePasswordProvider
        Gets the maximum number of attempts to get a password that should be attempted for one identity resource through this provider.
        Specified by:
        getAttempts in interface RepeatingFilePasswordProvider
        Returns:
        the maximum number of attempts to try, always >= 1.
      • 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