wicket.util.crypt
Class NoCrypt

java.lang.Object
  extended by wicket.util.crypt.NoCrypt
All Implemented Interfaces:
ICrypt

public class NoCrypt
extends java.lang.Object
implements ICrypt

Due to legal reasons in some countries the JRE is shipped without a security provider. As a convenience solution, we provide a default implementation which does not encrypt/decrypt the data. It does not modify the data at all. Thus we strongly recommend not to use it for production sites.

Author:
Juergen Donnerstag

Constructor Summary
NoCrypt()
          Constructor
 
Method Summary
 java.lang.String decrypt(java.lang.String text)
          Decrypts a string into a string.
 java.lang.String decryptUrlSafe(java.lang.String text)
          Decrypts a string into a string.
 java.lang.String encrypt(java.lang.String plainText)
          Encrypt a string into a string
 java.lang.String encryptUrlSafe(java.lang.String plainText)
          Encrypt a string into a string
 void setKey(java.lang.String key)
          Set encryption private key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoCrypt

public NoCrypt()
Constructor

Method Detail

decrypt

public final java.lang.String decrypt(java.lang.String text)
Decrypts a string into a string.

Specified by:
decrypt in interface ICrypt
Parameters:
text - text to decript
Returns:
the decrypted text

decryptUrlSafe

public final java.lang.String decryptUrlSafe(java.lang.String text)
Decrypts a string into a string.

Specified by:
decryptUrlSafe in interface ICrypt
Parameters:
text - text to decript
Returns:
the decrypted text

encrypt

public final java.lang.String encrypt(java.lang.String plainText)
Encrypt a string into a string

Specified by:
encrypt in interface ICrypt
Parameters:
plainText - text to encrypt
Returns:
encrypted string

encryptUrlSafe

public final java.lang.String encryptUrlSafe(java.lang.String plainText)
Encrypt a string into a string

Specified by:
encryptUrlSafe in interface ICrypt
Parameters:
plainText - text to encrypt
Returns:
encrypted string

setKey

public void setKey(java.lang.String key)
Set encryption private key

Specified by:
setKey in interface ICrypt
Parameters:
key - private key to make de-/encryption unique


Copyright © 2004-2007 Wicket developers. All Rights Reserved.