Class CommandLinePasswordManager
java.lang.Object
com.nomagic.magicdraw.teamwork2.esi.protect.CommandLinePasswordManager
- All Implemented Interfaces:
PasswordManager
@Deprecated
@OpenApiAll
public class CommandLinePasswordManager
extends Object
implements PasswordManager
Deprecated.
Password manager implementation for command line utilities
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.nomagic.ci.persistence.ProjectDescriptorDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionCommandLinePasswordManager(com.nomagic.ci.persistence.ProjectDescriptor descriptor, com.nomagic.magicdraw.teamwork2.esi.protect.PasswordChecking implementation) Deprecated.Creates and initializes a newAbstractPasswordManagerfrom specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.If the specified resource is password protected then the method asks the user to enter a password.booleanDeprecated.Checks whether the project is password protected.booleanisValidPassword(char[] password) Deprecated.Returns true if the specified password is valid.
-
Field Details
-
descriptor
protected final com.nomagic.ci.persistence.ProjectDescriptor descriptorDeprecated.
-
-
Constructor Details
-
CommandLinePasswordManager
public CommandLinePasswordManager(com.nomagic.ci.persistence.ProjectDescriptor descriptor, com.nomagic.magicdraw.teamwork2.esi.protect.PasswordChecking implementation) Deprecated.Creates and initializes a newAbstractPasswordManagerfrom specified parameters.- Parameters:
descriptor- a project descriptor.implementation- password checking implementation.
-
-
Method Details
-
askPasswordIfProtected
public boolean askPasswordIfProtected()Deprecated.Description copied from interface:PasswordManagerIf the specified resource is password protected then the method asks the user to enter a password.- Specified by:
askPasswordIfProtectedin interfacePasswordManager- Returns:
- true if the resource is not package protected or the user entered a correct password, otherwise - false.
-
isProtected
Deprecated.Checks whether the project is password protected.- Specified by:
isProtectedin interfacePasswordManager- Returns:
- true if the project is password protected, otherwise - false.
- Throws:
PasswordProtectException- if checking fails.
-
isValidPassword
Deprecated.Description copied from interface:PasswordManagerReturns true if the specified password is valid.- Specified by:
isValidPasswordin interfacePasswordManager- Parameters:
password- the project password.- Returns:
- true if valid.
- Throws:
PasswordProtectException- if checking whether the project password is valid fails.
-
PasswordManagerand will be removed from Open API. UsePasswordManagerinstead, create it usingEsiUtils.getPasswordManager(com.nomagic.magicdraw.core.project.ProjectDescriptor).