com.isti.quakewatch.util
Interface EncryptDecryptIntf

All Known Implementing Classes:
EncryptDecryptUtil

public interface EncryptDecryptIntf

Interface EncryptDecryptIntf describes encrypt/decrypt methods.


Method Summary
 java.lang.String decrypt(java.lang.String dataStr)
          Decrypts the given string.
 java.lang.String encrypt(java.lang.String dataStr)
          Encrypts the given string.
 boolean isEncryptStr(java.lang.String dataStr)
          Determines if the given data string is in the format of a string that has been encrypted by this class.
 

Method Detail

encrypt

java.lang.String encrypt(java.lang.String dataStr)
Encrypts the given string.

Parameters:
dataStr - data string to use.
Returns:
encrypted string, or null if the data string is invalid.

decrypt

java.lang.String decrypt(java.lang.String dataStr)
Decrypts the given string.

Parameters:
dataStr - data string to use.
Returns:
decrypted string, or null if the data string is invalid.

isEncryptStr

boolean isEncryptStr(java.lang.String dataStr)
Determines if the given data string is in the format of a string that has been encrypted by this class.

Parameters:
dataStr - data strign to use.
Returns:
true if the given data string is in the format of a string that has been encrypted by this class.