org.netbeans.lib.cvsclient.connection
Class PasswordsFile

java.lang.Object
  extended by org.netbeans.lib.cvsclient.connection.PasswordsFile

public final class PasswordsFile
extends java.lang.Object

Represents .cvspass passwords file.


Constructor Summary
PasswordsFile()
           
 
Method Summary
static java.lang.String findPassword(java.lang.String cvsRootString)
          Locates scrambled password for given CVS Root.
static java.util.Collection listRoots(java.lang.String prefix)
          List roots matching given prefix e.g.
static void storePassword(java.lang.String cvsRootString, java.lang.String encodedPassword)
          Writes scrambled password for given CVS root.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordsFile

public PasswordsFile()
Method Detail

findPassword

public static java.lang.String findPassword(java.lang.String cvsRootString)
Locates scrambled password for given CVS Root.

Parameters:
cvsRootString - identifies repository session [:method:][[user][:password]@][hostname[:[port]]]/path/to/repository
Returns:
scrambled password or null

listRoots

public static java.util.Collection listRoots(java.lang.String prefix)
List roots matching given prefix e.g. ":pserver:".


storePassword

public static void storePassword(java.lang.String cvsRootString,
                                 java.lang.String encodedPassword)
                          throws java.io.IOException
Writes scrambled password for given CVS root. Eliminates all previous values and possible duplicities.

Parameters:
cvsRootString - identifies repository session [:method:][[user][:password]@][hostname[:[port]]]/path/to/repository
encodedPassword -
Throws:
java.io.IOException - on write failure

 

Built on October 26 2010.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.