public class BasicAppLevelConfidentialityProfile
extends java.lang.Object
| Constructor and Description |
|---|
BasicAppLevelConfidentialityProfile() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDummyValues(ITag objITag,
java.lang.Object objValue)
This method adds Dummy values of the Data Elements i.e.
|
IDataSet |
decryptDataSet(IDataSet objIDataSet,
EnumProfileAlgorithm enumProfileAlgorithm,
byte[] objKey,
byte[] objIV)
This method decryts the encrypted data elements present in the given Data Set.
|
IDataSet |
encryptDataSet(IDataSet objOriginalIDataSet,
EnumProfileAlgorithm enumProfileAlgorithm,
byte[] objKey,
byte[] objIV)
This method encrypts the Confidential Data Elements present in the Data Set.
|
public void addDummyValues(ITag objITag, java.lang.Object objValue)
ITag - Tag oo the Data Element that is to be protected.objValue - Dummy value for the Data Element.public IDataSet encryptDataSet(IDataSet objOriginalIDataSet, EnumProfileAlgorithm enumProfileAlgorithm, byte[] objKey, byte[] objIV) throws java.io.IOException, java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException, java.security.InvalidKeyException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException, java.security.InvalidAlgorithmParameterException
objOriginalIDataSet - instance of Data Set containing Confidential Data Elements i.e. to be encrypted.enumProfileAlgorithm - - Encryption Algorithm that is to be used.objKey - - Key that is to be used for the encryption of Data ELements.objIV - - salt parameters.java.io.IOException - Signals if IO Operation Fails.java.security.NoSuchAlgorithmException - Signal is Encryption of the Data Set Fails.javax.crypto.NoSuchPaddingException - Signal is Encryption of the Data Set Fails.java.security.InvalidKeyException - Signal is Encryption of the Data Set Fails.javax.crypto.IllegalBlockSizeException - Signal is Encryption of the Data Set Fails.javax.crypto.BadPaddingException - Signal is Encryption of the Data Set Fails.java.security.InvalidAlgorithmParameterExceptionpublic IDataSet decryptDataSet(IDataSet objIDataSet, EnumProfileAlgorithm enumProfileAlgorithm, byte[] objKey, byte[] objIV) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException, java.security.InvalidKeyException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException, java.io.IOException, java.security.InvalidAlgorithmParameterException
objIDataSet - instance of data set containing encrypted Data Elements.objIV - - salt parameters.InvalidDataSetException - instance of data set containing all attributes with the confidential attributes.java.security.NoSuchAlgorithmException - Signal is Encryption of the Data Set Fails.javax.crypto.NoSuchPaddingException - Signal is Encryption of the Data Set Fails.java.security.InvalidKeyException - Signal is Encryption of the Data Set Fails.javax.crypto.IllegalBlockSizeException - Signal is Encryption of the Data Set Fails.javax.crypto.BadPaddingException - Signal is Encryption of the Data Set Fails.java.io.IOException - Signal is Encryption of the Data Set Fails.java.security.InvalidAlgorithmParameterException