public class Cache
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.concurrent.ConcurrentHashMap<java.lang.String,Identity> |
cacheP12 |
static java.util.concurrent.ConcurrentHashMap<java.lang.String,CachedJWEPrivateKey> |
cachePEM |
static boolean |
isCache |
| Constructor and Description |
|---|
Cache() |
Cache(MerchantConfig merchantConfig) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAccessToken() |
java.security.PrivateKey |
getJWECachedPrivateKey() |
long |
getLastModifiedFileTime(java.lang.String path) |
Identity |
getMerchantP12KeysFromCache() |
java.lang.String |
getRefreshToken() |
void |
setAccessToken(java.lang.String accessToken) |
void |
setMerchantConfig(MerchantConfig merchantConfig) |
void |
setRefreshToken(java.lang.String refreshToken) |
public static boolean isCache
public static java.util.concurrent.ConcurrentHashMap<java.lang.String,Identity> cacheP12
public static java.util.concurrent.ConcurrentHashMap<java.lang.String,CachedJWEPrivateKey> cachePEM
public Cache(MerchantConfig merchantConfig)
merchantConfig - - contains all information for merchant.public Cache()
public void setAccessToken(java.lang.String accessToken)
public java.lang.String getAccessToken()
public void setRefreshToken(java.lang.String refreshToken)
public java.lang.String getRefreshToken()
public void setMerchantConfig(MerchantConfig merchantConfig)
public Identity getMerchantP12KeysFromCache() throws java.lang.Exception
java.lang.Exceptionpublic java.security.PrivateKey getJWECachedPrivateKey()
throws java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException
java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionpublic long getLastModifiedFileTime(java.lang.String path)
Copyright © 2024. All Rights Reserved.