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.
CommandLinePasswordManager does not add new functions to PasswordManager and will be removed from Open API. Use PasswordManager instead, create it using EsiUtils.getPasswordManager(com.nomagic.magicdraw.core.project.ProjectDescriptor).
Password manager implementation for command line utilities
Version:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.nomagic.ci.persistence.ProjectDescriptor
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommandLinePasswordManager(com.nomagic.ci.persistence.ProjectDescriptor descriptor, com.nomagic.magicdraw.teamwork2.esi.protect.PasswordChecking implementation)
    Deprecated.
    Creates and initializes a new AbstractPasswordManager from specified parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    If the specified resource is password protected then the method asks the user to enter a password.
    boolean
    Deprecated.
    Checks whether the project is password protected.
    boolean
    isValidPassword(char[] password)
    Deprecated.
    Returns true if the specified password is valid.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • descriptor

      protected final com.nomagic.ci.persistence.ProjectDescriptor descriptor
      Deprecated.
  • Constructor Details

    • CommandLinePasswordManager

      public CommandLinePasswordManager(com.nomagic.ci.persistence.ProjectDescriptor descriptor, com.nomagic.magicdraw.teamwork2.esi.protect.PasswordChecking implementation)
      Deprecated.
      Creates and initializes a new AbstractPasswordManager from specified parameters.
      Parameters:
      descriptor - a project descriptor.
      implementation - password checking implementation.
  • Method Details

    • askPasswordIfProtected

      public boolean askPasswordIfProtected()
      Deprecated.
      Description copied from interface: PasswordManager
      If the specified resource is password protected then the method asks the user to enter a password.
      Specified by:
      askPasswordIfProtected in interface PasswordManager
      Returns:
      true if the resource is not package protected or the user entered a correct password, otherwise - false.
    • isProtected

      public boolean isProtected() throws PasswordProtectException
      Deprecated.
      Checks whether the project is password protected.
      Specified by:
      isProtected in interface PasswordManager
      Returns:
      true if the project is password protected, otherwise - false.
      Throws:
      PasswordProtectException - if checking fails.
    • isValidPassword

      public boolean isValidPassword(char[] password) throws PasswordProtectException
      Deprecated.
      Description copied from interface: PasswordManager
      Returns true if the specified password is valid.
      Specified by:
      isValidPassword in interface PasswordManager
      Parameters:
      password - the project password.
      Returns:
      true if valid.
      Throws:
      PasswordProtectException - if checking whether the project password is valid fails.