public class SecurityUtil extends Object
| Constructor and Description |
|---|
SecurityUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
createSignedDoc(Document workingDocument,
String keyAlias,
String password,
Logger logger)
Create signed document
|
protected static String |
getServerAlias(Map<String,Identity> identitiesMapper) |
static Document |
handleMessageCreation(Document signedDoc,
String merchantId,
Logger logger)
Create signed encrypted document
|
static void |
loadMerchantP12File(MerchantConfig merchantConfig,
Logger logger)
Method loads the Merchant P12 key.
|
static void |
readJdkCert(MerchantConfig merchantConfig,
Logger logger)
read jdk certificates from cacerts file
|
public static void loadMerchantP12File(MerchantConfig merchantConfig, Logger logger) throws SignException, SignEncryptException, ConfigException
merchantConfig - - Merchant Configlogger - - logger instanceSignException - - Signature exceptionSignEncryptExceptionConfigExceptionpublic static Document handleMessageCreation(Document signedDoc, String merchantId, Logger logger) throws SignEncryptException, SignException
signedDoc - merchantId - logger - SignEncryptExceptionSignExceptionpublic static Document createSignedDoc(Document workingDocument, String keyAlias, String password, Logger logger) throws SignException
workingDocument - keyAlias - password - logger - SignExceptionpublic static void readJdkCert(MerchantConfig merchantConfig, Logger logger) throws SignEncryptException, SignException
merchantConfig - logger - SignEncryptExceptionSignExceptionCopyright © 2022. All rights reserved.