public interface IPasswordInput
The UI API has a default implementation that allows to get the password from the user by the default dialog
Modifier and Type | Method and Description |
---|---|
default boolean |
callGetPasswordAgain(IncorrectPasswordErrorKind wrongPasswordError)
This method will be called each time the file cannot be opened with the help of the password from
getPassword() . |
CompletableFuture<String> |
getPassword()
This method will be called each time the file has a non-empty password.
|
default void |
onStartPasswordPrompting()
This method is called at the start of the loading process to reset the password dialog state (or for other purposes)
|
default void onStartPasswordPrompting()
CompletableFuture<String> getPassword()
Will be called each time the password is wrong and the
callGetPasswordAgain(IncorrectPasswordErrorKind)
returns true
default boolean callGetPasswordAgain(IncorrectPasswordErrorKind wrongPasswordError)
getPassword()
.
If true
is returned, the getPassword()
will be called again
wrongPasswordError
- contains the details of the last fail in the file decoding processfalse
to stop the attempts of decoding with the next password, true
to call the getPassword()
againIncorrectPasswordErrorKind
Copyright © 2024. All rights reserved.