@OpenApiAll
public class CommandLinePasswordManager
extends java.lang.Object
implements com.nomagic.magicdraw.teamwork2.esi.protect.PasswordManager
| Modifier and Type | Field and Description |
|---|---|
protected com.nomagic.ci.persistence.ProjectDescriptor |
descriptor |
| Constructor and Description |
|---|
CommandLinePasswordManager(com.nomagic.ci.persistence.ProjectDescriptor descriptor,
com.nomagic.magicdraw.teamwork2.esi.protect.PasswordCheckingImpl implementation)
Creates and initializes a new
AbstractPasswordManager from specified parameters. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
askPasswordIfProtected() |
boolean |
isProtected()
Checks whether the project is password protected.
|
boolean |
isValidPassword(char[] password) |
public CommandLinePasswordManager(com.nomagic.ci.persistence.ProjectDescriptor descriptor,
com.nomagic.magicdraw.teamwork2.esi.protect.PasswordCheckingImpl implementation)
AbstractPasswordManager from specified parameters.descriptor - a project descriptor.implementation - password checking implementation.public boolean askPasswordIfProtected()
askPasswordIfProtected in interface com.nomagic.magicdraw.teamwork2.esi.protect.PasswordManagerpublic boolean isProtected()
throws com.nomagic.magicdraw.teamwork2.esi.protect.PasswordProtectException
isProtected in interface com.nomagic.magicdraw.teamwork2.esi.protect.PasswordManagerPasswordProtectException - if checking fails.public boolean isValidPassword(char[] password)
throws com.nomagic.magicdraw.teamwork2.esi.protect.PasswordProtectException
isValidPassword in interface com.nomagic.magicdraw.teamwork2.esi.protect.PasswordManagercom.nomagic.magicdraw.teamwork2.esi.protect.PasswordProtectException