org.netbeans.lib.cvsclient.connection
Class StandardScrambler

java.lang.Object
  extended by org.netbeans.lib.cvsclient.connection.StandardScrambler
All Implemented Interfaces:
Scrambler

public class StandardScrambler
extends java.lang.Object
implements Scrambler

Scrambles text (the password) using the standard scheme described in the CVS protocol version 1.10. This encoding is trivial and should not be used for security, but rather as a mechanism for avoiding inadvertant compromise.


Field Summary
static StandardScrambler instance
          The single instance of this class (Singleton design pattern)
 
Method Summary
static Scrambler getInstance()
          Get an instance of the standard scrambler
 java.lang.String scramble(java.lang.String text)
          Scramble text, turning it into a String of scrambled data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static StandardScrambler instance
The single instance of this class (Singleton design pattern)

Method Detail

getInstance

public static Scrambler getInstance()
Get an instance of the standard scrambler


scramble

public java.lang.String scramble(java.lang.String text)
Scramble text, turning it into a String of scrambled data

Specified by:
scramble in interface Scrambler
Returns:
a String of scrambled data

 

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