public class KeyCertificateGenerator
extends java.lang.Object
| Constructor and Description |
|---|
KeyCertificateGenerator() |
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509Certificate |
initializeCertificate(MerchantConfig merchantConfig) |
java.security.interfaces.RSAPrivateKey |
initializePrivateKey(MerchantConfig merchantConfig) |
public java.security.cert.X509Certificate initializeCertificate(MerchantConfig merchantConfig) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.io.IOException, java.security.KeyStoreException, ConfigException, java.lang.Exception
merchantConfig - -contains merchant information.java.security.cert.CertificateException - - if certificate is missing or wrong.java.security.NoSuchAlgorithmException - - if algorithm is not available.java.io.IOException - - if file is not found.java.security.KeyStoreException - - if file is not available in key store or
wrong.ConfigException - - if some values is missing or wrong for
merchant.java.lang.Exception - - if some other exception will happen.public java.security.interfaces.RSAPrivateKey initializePrivateKey(MerchantConfig merchantConfig) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.io.IOException, java.security.KeyStoreException, ConfigException, java.lang.Exception
merchantConfig - - contains merchant information.java.security.cert.CertificateException - if certificate is missing or wrong.java.security.NoSuchAlgorithmException - if algorithm is not available.java.io.IOException - if file is not found.java.security.KeyStoreException - if file is not available in key store or
wrong.ConfigException - if some values is missing or wrong for
merchant.java.lang.Exception - if some other exception will happen.Copyright © 2022. All Rights Reserved.