Interface PasswordManager
- All Known Implementing Classes:
CommandLinePasswordManager
@OpenApiAll
public interface PasswordManager
Defines interface that allows to check whether a project is password protected and initiate
password enter via GUI.
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
If the specified resource is password protected then the method asks the user to enter a password.boolean
Checks whether the project is password protected.boolean
isValidPassword
(char[] password) Returns true if the specified password is valid.
-
Method Details
-
askPasswordIfProtected
boolean askPasswordIfProtected()If the specified resource is password protected then the method asks the user to enter a password.- Returns:
- true if the resource is not package protected or the user entered a correct password, otherwise - false.
-
isProtected
Checks whether the project is password protected.- Returns:
- true if the project is password protected, otherwise - false.
- Throws:
PasswordProtectException
- if checking fails.
-
isValidPassword
Returns true if the specified password is valid.- Parameters:
password
- the project password.- Returns:
- true if valid.
- Throws:
PasswordProtectException
- if checking whether the project password is valid fails.
-