public class Cache extends Object
| Modifier and Type | Field and Description |
|---|---|
static ConcurrentHashMap<String,Identity> |
cacheMLE |
static ConcurrentHashMap<String,Identity> |
cacheP12 |
static ConcurrentHashMap<String,CachedJWEPrivateKey> |
cachePEM |
| Constructor and Description |
|---|
Cache() |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
getJWECachedPrivateKey(MerchantConfig merchantConfig) |
long |
getLastModifiedFileTime(String path)
Gets the last modified time of a file.
|
Identity |
getMerchantP12KeysFromCache(MerchantConfig merchantConfig) |
CachedMLEKId |
getMLEKIdDataFromCache(MerchantConfig merchantConfig) |
PrivateKey |
getMleResponsePrivateKeyFromFilePath(MerchantConfig merchantConfig) |
X509Certificate |
getRequestMLECertFromCache(MerchantConfig merchantConfig) |
public static ConcurrentHashMap<String,Identity> cacheP12
public static ConcurrentHashMap<String,CachedJWEPrivateKey> cachePEM
public static ConcurrentHashMap<String,Identity> cacheMLE
public Identity getMerchantP12KeysFromCache(MerchantConfig merchantConfig) throws Exception
Exceptionpublic CachedMLEKId getMLEKIdDataFromCache(MerchantConfig merchantConfig)
public X509Certificate getRequestMLECertFromCache(MerchantConfig merchantConfig) throws MLEException
MLEExceptionpublic PrivateKey getJWECachedPrivateKey(MerchantConfig merchantConfig) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException
public PrivateKey getMleResponsePrivateKeyFromFilePath(MerchantConfig merchantConfig) throws MLEException
MLEExceptionpublic long getLastModifiedFileTime(String path)
path - the file path to checkCopyright © 2026. All rights reserved.