public class KeyCertificateGenerator extends Object
| Constructor and Description |
|---|
KeyCertificateGenerator() |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
initializeCertificateOfMerchantForJWT(MerchantConfig merchantConfig) |
X509Certificate |
initializeMLECertificate(MerchantConfig merchantConfig) |
RSAPrivateKey |
initializePrivateKey(MerchantConfig merchantConfig) |
public X509Certificate initializeCertificateOfMerchantForJWT(MerchantConfig merchantConfig) throws CertificateException, NoSuchAlgorithmException, IOException, KeyStoreException, ConfigException, Exception
merchantConfig - -contains merchant information.CertificateException - - if certificate is missing or wrong.NoSuchAlgorithmException - - if algorithm is not available.IOException - - if file is not found.KeyStoreException - - if file is not available in key store or
wrong.ConfigException - - if some values is missing or wrong for
merchant.Exception - - if some other exception will happen.public X509Certificate initializeMLECertificate(MerchantConfig merchantConfig) throws CertificateException, NoSuchAlgorithmException, IOException, KeyStoreException, ConfigException, Exception
merchantConfig - -contains merchant information.CertificateException - - if certificate is missing or wrong.NoSuchAlgorithmException - - if algorithm is not available.IOException - - if file is not found.KeyStoreException - - if file is not available in key store or
wrong.ConfigException - - if some values is missing or wrong for
merchant.Exception - - if some other exception will happen.public RSAPrivateKey initializePrivateKey(MerchantConfig merchantConfig) throws CertificateException, NoSuchAlgorithmException, IOException, KeyStoreException, ConfigException, Exception
merchantConfig - - contains merchant information.CertificateException - if certificate is missing or wrong.NoSuchAlgorithmException - if algorithm is not available.IOException - if file is not found.KeyStoreException - if file is not available in key store or
wrong.ConfigException - if some values is missing or wrong for
merchant.Exception - if some other exception will happen.Copyright © 2026. All rights reserved.