com.ebasetech.xi.services
Class EncryptionServices

java.lang.Object
  extended by com.ebasetech.xi.services.EncryptionServices

public class EncryptionServices
extends java.lang.Object

Encryption and decryption services

Since:
V4.4

Constructor Summary
EncryptionServices()
           
 
Method Summary
static java.lang.String decrypt(java.lang.String message)
          Decrypts the string represented by message using the PBEWithMD5AndDES algorithm and with standard encryption parameters.
static java.lang.String decrypt(java.lang.String message, int count, java.lang.String key)
          Decrypts the string represented by message using the PBEWithMD5AndDES algorithm.
static java.lang.String encrypt(java.lang.String message)
          Encrypts the string represented by message using the PBEWithMD5AndDES algorithm and with standard encryption parameters.
static java.lang.String encrypt(java.lang.String message, int count, java.lang.String key)
          Encrypts the string represented by message using the PBEWithMD5AndDES algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionServices

public EncryptionServices()
Method Detail

encrypt

public static java.lang.String encrypt(java.lang.String message,
                                       int count,
                                       java.lang.String key)
                                throws com.ebasetech.xi.exceptions.FormRuntimeException
Encrypts the string represented by message using the PBEWithMD5AndDES algorithm.

Parameters:
message - string to be encrypted
count - number of times the encryption algorithm is invoked
key - key used by the encryption algorithm; if null, the default is used (see encrypt(String))
Returns:
encrypted string
Throws:
com.ebasetech.xi.exceptions.FormRuntimeException - if any error occurs
Since:
V4.4
See Also:
encrypt(String)

encrypt

public static java.lang.String encrypt(java.lang.String message)
                                throws com.ebasetech.xi.exceptions.FormRuntimeException
Encrypts the string represented by message using the PBEWithMD5AndDES algorithm and with standard encryption parameters. The standard encryption parameters are specified using the Ebase Xi Designer Tools > Maintain Security > Encryption.

Parameters:
message - the string to be encrypted
Returns:
encrypted string
Throws:
com.ebasetech.xi.exceptions.FormRuntimeException - if any error occurs
Since:
V4.4
See Also:
encrypt(String, int, String)

decrypt

public static java.lang.String decrypt(java.lang.String message,
                                       int count,
                                       java.lang.String key)
                                throws com.ebasetech.xi.exceptions.FormRuntimeException
Decrypts the string represented by message using the PBEWithMD5AndDES algorithm.

Parameters:
message - string to be decrypted
count - number of times the encryption algorithm is invoked
key - key used by the decrytion algorithm; if null, the default is used (see decrypt(String))
Returns:
decrypted string
Throws:
com.ebasetech.xi.exceptions.FormRuntimeException - if any error occurs, usually the message is not in the correct encrypted format
Since:
V4.4
See Also:
decrypt(String)

decrypt

public static java.lang.String decrypt(java.lang.String message)
                                throws com.ebasetech.xi.exceptions.FormRuntimeException
Decrypts the string represented by message using the PBEWithMD5AndDES algorithm and with standard encryption parameters. The standard encryption parameters are specified using the Ebase Xi Designer Tools > Maintain Security > Encryption.

Parameters:
message - the string to be decrypted
Returns:
decrypted string
Throws:
com.ebasetech.xi.exceptions.FormRuntimeException - if any error occurs, usually the message is not in the correct encrypted format
Since:
V4.4
See Also:
decrypt(String, int, String)