wicket.util.crypt
Interface ICrypt

All Known Implementing Classes:
AbstractCrypt, NoCrypt

public interface ICrypt

Encryption and decryption implementations are accessed through this interface. It provide some simple means to encrypt and decrypt strings, like passwords etc.. It depends on the implementation itself which algorithms are used to en-/decrypt the data.

Author:
Juergen Donnerstag

Method Summary
 java.lang.String decrypt(java.lang.String text)
          Decrypts a string.
 java.lang.String encrypt(java.lang.String plainText)
          Encrypts a string.
 void setKey(java.lang.String key)
          Sets private encryption key.
 

Method Detail

decrypt

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

Parameters:
text - the text to decrypt
Returns:
the decrypted string.

encrypt

public java.lang.String encrypt(java.lang.String plainText)
Encrypts a string.

Parameters:
plainText -
Returns:
encrypted string

setKey

public void setKey(java.lang.String key)
Sets private encryption key. It depends on the implementation if a default key is applied or an exception is thrown, if no private key has been provided.

Parameters:
key - private key


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