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.FilePasswordProviderAFilePasswordProvideraugmented to support repeatedly asking for passwords.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetAttempts()Gets the maximum number of attempts to get a password that should be attempted for one identity resource through this provider.voidsetAttempts(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
-
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;IllegalArgumentExceptionmay 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.
-
-