Search in sources :

Example 1 with AuthenticationRequestCacheKey

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);
    }
}
Also used : AuthenticationRequestCacheKey(org.wso2.carbon.identity.application.authentication.framework.cache.AuthenticationRequestCacheKey)

Example 2 with AuthenticationRequestCacheKey

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);
}
Also used : AuthenticationRequestCacheKey(org.wso2.carbon.identity.application.authentication.framework.cache.AuthenticationRequestCacheKey)

Aggregations

AuthenticationRequestCacheKey (org.wso2.carbon.identity.application.authentication.framework.cache.AuthenticationRequestCacheKey)2