java.lang.Object
org.apache.maven.scm.provider.cvslib.command.login.CvsPass

public class CvsPass extends Object
Adds an new entry to a CVS password file. TODO Update this class for support password storage in cvsnt. CVSNT use the windows registry, so, we need a jni tool for access to the windows registry
  • Field Details

    • cvsRoot

      private String cvsRoot
      CVS Root
    • passFile

      private File passFile
      Password file to add password to
    • password

      private String password
      Password to add to file
    • logger

      private ScmLogger logger
    • shifts

      private final char[] shifts
      Array contain char conversion data
  • Constructor Details

    • CvsPass

      public CvsPass(ScmLogger logger)
      Create a CVS task using the default cvspass file location.
  • Method Details

    • execute

      public final void execute() throws ScmException, IOException
      Does the work.
      Throws:
      ScmException - if something is missing
      IOException - if something goes wrong
    • mangle

      private String mangle(String password)
    • setCvsroot

      public void setCvsroot(String cvsRoot)
      The CVS repository to add an entry for.
      Parameters:
      cvsRoot - the CVS repository
    • setPassfile

      public void setPassfile(File passFile)
      Password file to add the entry to.
      Parameters:
      passFile - the password file.
    • setPassword

      public void setPassword(String password)
      Password to be added to the password file.
      Parameters:
      password - the password.