com.cybersource.ws.client
Class SecurityUtil
java.lang.Object
com.cybersource.ws.client.SecurityUtil
public class SecurityUtil
- extends java.lang.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
java.io.IOException
org.apache.ws.security.components.crypto.CredentialException
handleMessageCreation
public static org.w3c.dom.Document handleMessageCreation(org.w3c.dom.Document signedDoc,
java.lang.String merchantID,
Logger logger)
throws SignEncryptException,
com.cybersource.ws.client.SignException
- Throws:
SignEncryptException
com.cybersource.ws.client.SignException
createSignedDoc
public static org.w3c.dom.Document createSignedDoc(org.w3c.dom.Document workingDocument,
java.lang.String merchantID,
java.lang.String password,
Logger logger)
throws com.cybersource.ws.client.SignException
- Throws:
com.cybersource.ws.client.SignException
readJdkCert
public static void readJdkCert(MerchantConfig merchantConfig,
Logger logger)
throws SignEncryptException,
com.cybersource.ws.client.SignException
- Throws:
SignEncryptException
com.cybersource.ws.client.SignException
Copyright © 2017. All Rights Reserved.