com.cybersource.ws.client
Class SecurityUtil

java.lang.Object
  extended by com.cybersource.ws.client.SecurityUtil

public class SecurityUtil
extends Object


Constructor Summary
SecurityUtil()
           
 
Method Summary
static Document createSignedDoc(Document workingDocument, String merchantID, String password, Logger logger)
           
static Document handleMessageCreation(Document signedDoc, String merchantID, Logger logger)
           
static void loadMerchantP12File(MerchantConfig merchantConfig, Logger logger)
          Method loads the Merchant P12 key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityUtil

public SecurityUtil()
Method Detail

loadMerchantP12File

public static void loadMerchantP12File(MerchantConfig merchantConfig,
                                       Logger logger)
                                throws com.cybersource.ws.client.SignException,
                                       SignEncryptException
Method loads the Merchant P12 key. IMPORTANT :This change is made based on the assumptions that at point of time , a merchant will have only one P12 Key

Parameters:
merchantConfig - - Merchant Config
logger - - logger instance
Throws:
SignException - - Signature exception
SignEncryptException
ConfigException
IOException
org.apache.ws.security.components.crypto.CredentialException

handleMessageCreation

public static Document handleMessageCreation(Document signedDoc,
                                             String merchantID,
                                             Logger logger)
                                      throws SignEncryptException,
                                             com.cybersource.ws.client.SignException
Throws:
SignEncryptException
com.cybersource.ws.client.SignException

createSignedDoc

public static Document createSignedDoc(Document workingDocument,
                                       String merchantID,
                                       String password,
                                       Logger logger)
                                throws com.cybersource.ws.client.SignException
Throws:
com.cybersource.ws.client.SignException


Copyright © 2016. All Rights Reserved.