Interface RepeatingFilePasswordProvider

  • All Superinterfaces:
    org.apache.sshd.common.config.keys.FilePasswordProvider
    All Known Implementing Classes:
    PasswordProviderWrapper

    public interface RepeatingFilePasswordProvider
    extends org.apache.sshd.common.config.keys.FilePasswordProvider
    A FilePasswordProvider augmented to support repeatedly asking for passwords.
    • 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 Abstract Methods Default Methods 
      Modifier and Type Method Description
      default int getAttempts()
      Gets the maximum number of attempts to get a password that should be attempted for one identity resource through this provider.
      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.
      • Methods inherited from interface org.apache.sshd.common.config.keys.FilePasswordProvider

        getPassword, handleDecodeAttemptResult
    • Method Detail

      • setAttempts

        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.
        Parameters:
        numberOfPasswordPrompts - number of times to ask for a password; IllegalArgumentException may be thrown if <= 0
      • getAttempts

        default int getAttempts()
        Gets the maximum number of attempts to get a password that should be attempted for one identity resource through this provider.
        Returns:
        the maximum number of attempts to try, always >= 1.