Package com.cybersource.authsdk.cache
Class Cache
java.lang.Object
com.cybersource.authsdk.cache.Cache
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ConcurrentHashMap<String,Identity> static booleanstatic long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanvoidvoidsetAccessToken(String accessToken) voidvoidsetRefreshToken(String refreshToken) voidsetRsaPrivateKey(RSAPrivateKey rsaPrivateKey) voidvoidsetX509Certificate(X509Certificate x509Certificate)
-
Field Details
-
isCache
public static boolean isCache -
lastModifiedTime
public static long lastModifiedTime -
cacheP12
-
cachePEM
-
-
Constructor Details
-
Cache
- Parameters:
merchantConfig- - contains all information for merchant.
-
-
Method Details
-
setX509Certificate
-
setAccessToken
-
getAccessToken
-
setRefreshToken
-
getRefreshToken
-
setRsaPrivateKey
-
getRsaPrivateKey
-
getX509Certificate
-
setP12FileDetailsInCache
- Throws:
ConfigException- - if some value is missing or wrong for merchant.
-
setUpP12Cache
- Throws:
ConfigException- - if some value is missing or wrong for merchant.
-
retrieveP12DataFromCache
public void retrieveP12DataFromCache() -
isLastModifiedTimeP12
public boolean isLastModifiedTimeP12()- Returns:
- true if file is modified else return false.
-
getJWECachedPrivateKey
public PrivateKey getJWECachedPrivateKey() throws IOException, NoSuchAlgorithmException, InvalidKeySpecException -
getLastModifiedFileTime
- Returns:
- value for last modified.
-