org.apache.maven.scm.provider.cvslib.command.login
Class CvsPass

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

public class CvsPass
extends java.lang.Object

Adds an new entry to a CVS password file.

Version:
$Id: CvsPass.java 292847 2005-09-30 20:06:09Z evenisse $

Field Summary
private  java.lang.String cvsRoot
          CVS Root
private  org.apache.maven.scm.log.ScmLogger logger
           
private  java.io.File passFile
          Password file to add password to
private  java.lang.String password
          Password to add to file
private  char[] shifts
          Array contain char conversion data
 
Constructor Summary
CvsPass(org.apache.maven.scm.log.ScmLogger logger)
          Create a CVS task using the default cvspass file location.
 
Method Summary
 void execute()
          Does the work.
private  java.lang.String mangle(java.lang.String password)
           
 void setCvsroot(java.lang.String cvsRoot)
          The CVS repository to add an entry for.
 void setPassfile(java.io.File passFile)
          Password file to add the entry to.
 void setPassword(java.lang.String password)
          Password to be added to the password file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsRoot

private java.lang.String cvsRoot
CVS Root


passFile

private java.io.File passFile
Password file to add password to


password

private java.lang.String password
Password to add to file


logger

private org.apache.maven.scm.log.ScmLogger logger

shifts

private final char[] shifts
Array contain char conversion data

Constructor Detail

CvsPass

public CvsPass(org.apache.maven.scm.log.ScmLogger logger)
Create a CVS task using the default cvspass file location.

Method Detail

execute

public final void execute()
                   throws org.apache.maven.scm.ScmException,
                          java.io.IOException
Does the work.

Throws:
org.apache.maven.scm.ScmException - if something is missing
java.io.IOException - if something goes wrong

mangle

private final java.lang.String mangle(java.lang.String password)

setCvsroot

public void setCvsroot(java.lang.String cvsRoot)
The CVS repository to add an entry for.

Parameters:
cvsRoot - the CVS repository

setPassfile

public void setPassfile(java.io.File passFile)
Password file to add the entry to.

Parameters:
passFile - the password file.

setPassword

public void setPassword(java.lang.String password)
Password to be added to the password file.

Parameters:
password - the password.