Re: Encoding a password?

Benoit Maisonny <[email protected]> Wed, 15 Sep 2004 10:54:06 +0200
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Organization Synclude
Message-ID <[email protected]>
I can't answer your question directly, but I can tell you how to get a 
connection:

Connection connection = ConnectionFactory.getConnection(connectionString);
connection.open();

This method has the advantage of being agnosting to the type of 
connection (remote or local).
connectionString would be a complete CVSROOT string, including the user 
name and password:

[:method:][[user][:password]@]hostname[:[port]]/path/to/repository

This comes from the CVS manual:
https://www.cvshome.org/docs/manual/cvs-1.11.17/cvs_2.html#SEC26

HTH,
Benoit


Stephen Gross wrote:

>I'm new to using javacvs. I'm trying just to get the basics to work. For
>the moment, I just want to be able to connect to a pserver. I already have
>a pserver running, and have an account on it. I'm following the directions
>on (http://javacvs.netbeans.org/library/GettingStarted.html) to establish
>a connection:
>
>    PServerConnection c = new PServerConnection();
>    c.setUserName(userName);
>    c.setEncodedPassword(encodedPassword);
>    c.setHostName(hostName);
>    c.setRepository(repository);
>    c.open();
>
>How do I encode the password? I know what password I want to use, but I
>don't know how to go about encoding it.
>
>Thanks in advance,
>--Steve
>
>Stephen Gross
>Case Western School of Medicine
>Department of Epidemiology and Biostatistics
>(216)368-5632
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>  
>


-- 
Benoit Maisonny                [email protected]
Director & Consultant          http://synclude.com
Synclude