ERXDESCrypter Class Reference

Inherits er::extensions::crypting::ERXCrypterInterface.

Collaboration diagram for ERXDESCrypter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

String decrypt (String cryptedText, Key secretKey)
String decrypt (String cryptedText)
String encrypt (String clearText, Key secretKey)
String encrypt (String clearText)
 ERXDESCrypter (String secretKeyPathFramework, String secretKeyPath)
 ERXDESCrypter ()
void setSecretKeyPath (String secretKeyPath)
void setSecretKeyPathFramework (String secretKeyPathFramework)

Static Public Attributes

static final Logger log = Logger.getLogger(ERXCrypto.class)

Protected Member Functions

Key defaultSecretKey ()

Private Attributes

Key _secretDESKey
String _secretKeyPath
String _secretKeyPathFramework


Detailed Description

ERXDESCrypto is a DES implementation of the crypter interface.

Author:
mschrag

Constructor & Destructor Documentation

ERXDESCrypter (  ) 

ERXDESCrypter ( String  secretKeyPathFramework,
String  secretKeyPath 
)


Member Function Documentation

String decrypt ( String  cryptedText,
Key  secretKey 
)

Base64 decodes and then DES decrypts the passed in string using the passed in secret key.

String decrypt ( String  cryptedText  ) 

Base64 decodes and then DES decrypts the passed in string using the secret key returned by secretKey.

Implements ERXCrypterInterface.

Key defaultSecretKey (  )  [protected]

Returns the DES java.security.Key found in the key file. The Key is cached once it's found so further hits to the disk are unnecessary. If the key file cannot be found, the method creates a key and writes out a key file.

String encrypt ( String  clearText,
Key  secretKey 
)

DES Encrypts and then base64 encodes the passed in String using the passed in secret key. The base64 encoding is performed to ensure that the encrypted string can be stored in places that don't support extended character sets.

String encrypt ( String  clearText  ) 

DES Encrypts and then base64 encodes the passed in String using the secret key returned by secretKey. The base64 encoding is performed to ensure that the encrypted string can be stored in places that don't support extended character sets.

Implements ERXCrypterInterface.

void setSecretKeyPath ( String  secretKeyPath  ) 

void setSecretKeyPathFramework ( String  secretKeyPathFramework  ) 


Member Data Documentation

Key _secretDESKey [private]

final Logger log = Logger.getLogger(ERXCrypto.class) [static]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:07 2012 for Project Wonder by  doxygen 1.5.8