Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.turbine.services.crypto.provider
Class ClearCrypt  view ClearCrypt download ClearCrypt.java

java.lang.Object
  extended byorg.apache.turbine.services.crypto.provider.ClearCrypt
All Implemented Interfaces:
org.apache.turbine.services.crypto.CryptoAlgorithm

public class ClearCrypt
extends java.lang.Object
implements org.apache.turbine.services.crypto.CryptoAlgorithm

This is a dummy for "cleartext" encryption. It goes through the notions of the CryptoAlgorithm interface but actually does nothing. It can be used as a replacement for the "encrypt = no" setting in the TR.props. Can be used as the default crypto algorithm

Version:
$Id: ClearCrypt.java 264148 2005-08-29 14:21:04Z henning $

Constructor Summary
ClearCrypt()
          C'tor
 
Method Summary
 java.lang.String encrypt(java.lang.String value)
          encrypt the supplied string with the requested cipher
 void setCipher(java.lang.String cipher)
          This class never uses an algorithm, so this is just a dummy.
 void setSeed(java.lang.String seed)
          This class never uses a seed, so this is just a dummy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearCrypt

public ClearCrypt()
C'tor

Method Detail

setCipher

public void setCipher(java.lang.String cipher)
This class never uses an algorithm, so this is just a dummy.

Specified by:
setCipher in interface org.apache.turbine.services.crypto.CryptoAlgorithm

setSeed

public void setSeed(java.lang.String seed)
This class never uses a seed, so this is just a dummy.

Specified by:
setSeed in interface org.apache.turbine.services.crypto.CryptoAlgorithm

encrypt

public java.lang.String encrypt(java.lang.String value)
                         throws java.lang.Exception
encrypt the supplied string with the requested cipher

Specified by:
encrypt in interface org.apache.turbine.services.crypto.CryptoAlgorithm