org.netbeans.lib.cvsclient.connection
Class PasswordsFile

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

public final class PasswordsFile
extends Object

Represents .cvspass passwords file.

Author:
Petr Kuzel

Constructor Summary
PasswordsFile()
           
 
Method Summary
static String findPassword(String cvsRootString)
          Locates scrambled password for given CVS Root.
static Collection listRoots(String prefix)
          List roots matching given prefix e.g.
static void storePassword(String cvsRootString, 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 String findPassword(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 Collection listRoots(String prefix)
List roots matching given prefix e.g. ":pserver:".


storePassword

public static void storePassword(String cvsRootString,
                                 String encodedPassword)
                          throws 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:
IOException - on write failure


Copyright © 2011. All Rights Reserved.