com.konakartadmin.bl
Class AdminMgrUtils

java.lang.Object
  extended by com.konakartadmin.bl.AdminMgrUtils
All Implemented Interfaces:
AdminMgrUtilsIf

public class AdminMgrUtils
extends java.lang.Object
implements AdminMgrUtilsIf

The AdminMgrUtils - a collection of utilities the Admin Application


Constructor Summary
AdminMgrUtils()
          Empty constructor
 
Method Summary
 void decryptOrder(AdminOrder order)
          Decrypt the encrypted parts of an order - but only if the encryption key passed in is non-null and not empty.
 AdminCreditCard encryptCreditCard(AdminCreditCard creditCard, java.lang.String ek)
          Encrypt the credit card details - but only if the encryption key passed in is non-null and not empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminMgrUtils

public AdminMgrUtils()
Empty constructor

Method Detail

decryptOrder

public void decryptOrder(AdminOrder order)
                  throws KKAdminException
Decrypt the encrypted parts of an order - but only if the encryption key passed in is non-null and not empty.

Specified by:
decryptOrder in interface AdminMgrUtilsIf
Parameters:
order - the order object that will be populated with the unencrypted attributes
Throws:
KKAdminException

encryptCreditCard

public AdminCreditCard encryptCreditCard(AdminCreditCard creditCard,
                                         java.lang.String ek)
                                  throws KKAdminException
Encrypt the credit card details - but only if the encryption key passed in is non-null and not empty. Null attributes are copied to the new encrypted credit card details.

Specified by:
encryptCreditCard in interface AdminMgrUtilsIf
Parameters:
creditCard - the original credit card object
ek - the encryption key
Returns:
a new AdminCreditCard object with encrypted fields. If the original creditCard object is null, or the encryption key is null (or empty), a null is returned.
Throws:
KKAdminException


Copyright © 2011 DS Data Systems UK Ltd.