TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.hyades.models.common.datapool.util
Class DatapoolEncryptManager

java.lang.Object
  extended by org.eclipse.hyades.models.common.datapool.util.DatapoolEncryptManager

public class DatapoolEncryptManager
extends java.lang.Object

Utility APIs for encrypted datapools.

Provisional API: This API is subject to change in the next release.
Provisional API as of TPTP 4.5.0.

Constructor Summary
DatapoolEncryptManager()
           
 
Method Summary
static void changeKey(java.lang.String newKey, IDatapool datapool)
          Change key for an encrypted datapool.
static void changeKeyOfEncryptedCell(IDatapool datapool, java.lang.String oldKey, java.lang.String newKey)
          Update encrypted variables using new key
static boolean containsEncryptedVariable(IDatapool datapool)
           
static java.lang.String decrypt(java.lang.String content, java.lang.String pass)
           
static void decryptDatapool(IDatapool datapool, java.lang.String key)
          Decrypt datapool's variables into unencrypted
static void decryptedCellInVarible(IDatapoolVariable variable, java.lang.String key, IDatapool datapool)
          Decrypt selected variable in the datapool using key
static java.lang.String encrypt(java.lang.String content, java.lang.String pass)
           
static void encryptDatapool(IDatapool datapool, java.lang.String key)
          Encrypt datapool using assigned key
static void encryptedCellInVarible(IDatapoolVariable varible, java.lang.String key, IDatapool datapool)
          Used to encrypt the variable in the datapool using password
static boolean isDatapoolEncrypted(IDatapool datapool)
           
static boolean isKeyCorrect(IDatapool datapool, java.lang.String key)
           
static boolean isVariableEncrypted(IDatapoolVariable varible)
           
static void removeKey(IDatapool datapool)
          Removed the key for an encrypted datapool.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatapoolEncryptManager

public DatapoolEncryptManager()
Method Detail

encryptedCellInVarible

public static void encryptedCellInVarible(IDatapoolVariable varible,
                                          java.lang.String key,
                                          IDatapool datapool)
Used to encrypt the variable in the datapool using password

Parameters:
varible -
key -
datapool -

decryptedCellInVarible

public static void decryptedCellInVarible(IDatapoolVariable variable,
                                          java.lang.String key,
                                          IDatapool datapool)
Decrypt selected variable in the datapool using key

Parameters:
varible -
key -
datapool -

removeKey

public static void removeKey(IDatapool datapool)
Removed the key for an encrypted datapool.

Parameters:
datapool - The encrypted datapool.

changeKey

public static void changeKey(java.lang.String newKey,
                             IDatapool datapool)
Change key for an encrypted datapool.

Parameters:
newKey - The new key.
datapool - The encrypted datapool.

changeKeyOfEncryptedCell

public static void changeKeyOfEncryptedCell(IDatapool datapool,
                                            java.lang.String oldKey,
                                            java.lang.String newKey)
Update encrypted variables using new key

Parameters:
datapool -
oldKey -
newKey -

decryptDatapool

public static void decryptDatapool(IDatapool datapool,
                                   java.lang.String key)
Decrypt datapool's variables into unencrypted

Parameters:
datapool -
key -

encryptDatapool

public static void encryptDatapool(IDatapool datapool,
                                   java.lang.String key)
Encrypt datapool using assigned key

Parameters:
datapool -
key -

isDatapoolEncrypted

public static boolean isDatapoolEncrypted(IDatapool datapool)

containsEncryptedVariable

public static boolean containsEncryptedVariable(IDatapool datapool)

isKeyCorrect

public static boolean isKeyCorrect(IDatapool datapool,
                                   java.lang.String key)

isVariableEncrypted

public static boolean isVariableEncrypted(IDatapoolVariable varible)

encrypt

public static java.lang.String encrypt(java.lang.String content,
                                       java.lang.String pass)

decrypt

public static java.lang.String decrypt(java.lang.String content,
                                       java.lang.String pass)

TPTP 4.6.0 Platform Project
Public API Specification