|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objecter.extensions.crypting.ERXDESCrypter
public class ERXDESCrypter
ERXDESCrypto is a DES implementation of the crypter interface.
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
ERXDESCrypter()
|
|
ERXDESCrypter(java.lang.String secretKeyPathFramework,
java.lang.String secretKeyPath)
|
|
| Method Summary | |
|---|---|
java.lang.String |
decrypt(java.lang.String cryptedText)
Base64 decodes and then DES decrypts the passed in string using the secret key returned by secretKey. |
java.lang.String |
decrypt(java.lang.String cryptedText,
java.security.Key secretKey)
Base64 decodes and then DES decrypts the passed in string using the passed in secret key. |
protected java.security.Key |
defaultSecretKey()
Returns the DES java.security.Key found in the key file. |
java.lang.String |
encrypt(java.lang.String clearText)
DES Encrypts and then base64 encodes the passed in String using the secret key returned by secretKey. |
java.lang.String |
encrypt(java.lang.String clearText,
java.security.Key secretKey)
DES Encrypts and then base64 encodes the passed in String using the passed in secret key. |
void |
setSecretKeyPath(java.lang.String secretKeyPath)
|
void |
setSecretKeyPathFramework(java.lang.String secretKeyPathFramework)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public ERXDESCrypter()
public ERXDESCrypter(java.lang.String secretKeyPathFramework,
java.lang.String secretKeyPath)
| Method Detail |
|---|
public void setSecretKeyPathFramework(java.lang.String secretKeyPathFramework)
public void setSecretKeyPath(java.lang.String secretKeyPath)
protected java.security.Key defaultSecretKey()
public java.lang.String decrypt(java.lang.String cryptedText)
secretKey.
decrypt in interface ERXCrypterInterfacecryptedText - the string to decrypt
public java.lang.String decrypt(java.lang.String cryptedText,
java.security.Key secretKey)
public java.lang.String encrypt(java.lang.String clearText)
secretKey. The base64 encoding is
performed to ensure that the encrypted string can be stored in places
that don't support extended character sets.
encrypt in interface ERXCrypterInterfaceclearText - the text to encrypt
public java.lang.String encrypt(java.lang.String clearText,
java.security.Key secretKey)
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||