com.cybersource.ws.client
Class SecurityUtil
java.lang.Object
com.cybersource.ws.client.SecurityUtil
public class SecurityUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityUtil
public SecurityUtil()
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 Configlogger - - 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.