use of org.wso2.carbon.identity.application.authentication.framework.cache.AuthenticationRequestCacheKey in project carbon-identity-framework by wso2.
the class FrameworkUtils method removeAuthenticationRequestFromCache.
/**
* removes authentication request from cache.
*
* @param key SessionDataKey
*/
public static void removeAuthenticationRequestFromCache(String key) {
if (key != null) {
AuthenticationRequestCacheKey cacheKey = new AuthenticationRequestCacheKey(key);
AuthenticationRequestCache.getInstance().clearCacheEntry(cacheKey);
}
}
use of org.wso2.carbon.identity.application.authentication.framework.cache.AuthenticationRequestCacheKey in project carbon-identity-framework by wso2.
the class FrameworkUtils method addAuthenticationRequestToCache.
/**
* To add authentication request cache entry to cache.
*
* @param key cache entry key
* @param authReqEntry AuthenticationReqCache Entry.
*/
public static void addAuthenticationRequestToCache(String key, AuthenticationRequestCacheEntry authReqEntry) {
AuthenticationRequestCacheKey cacheKey = new AuthenticationRequestCacheKey(key);
AuthenticationRequestCache.getInstance().addToCache(cacheKey, authReqEntry);
}
Aggregations