Package io.jans.configapi.security.api
Class ApiProtectionCache
- java.lang.Object
-
- io.jans.configapi.security.api.ApiProtectionCache
-
@ApplicationScoped @Named public class ApiProtectionCache extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intCACHE_LIFETIME
-
Constructor Summary
Constructors Constructor Description ApiProtectionCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,List<io.jans.as.persistence.model.Scope>>getAllResources()static Map<String,io.jans.as.persistence.model.Scope>getAllScopes()static List<io.jans.as.persistence.model.Scope>getResourceScopes(String resourceName)static io.jans.as.persistence.model.ScopegetScope(String scopeName)static voidputResource(String resourceName, List<io.jans.as.persistence.model.Scope> scopeList)static voidputScope(io.jans.as.persistence.model.Scope scope)static voidremoveAllResources()static voidremoveAllScopes()
-
-
-
Field Detail
-
CACHE_LIFETIME
public static final int CACHE_LIFETIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
removeAllScopes
public static void removeAllScopes()
-
getScope
public static io.jans.as.persistence.model.Scope getScope(String scopeName)
-
putScope
public static void putScope(io.jans.as.persistence.model.Scope scope)
-
removeAllResources
public static void removeAllResources()
-
getResourceScopes
public static List<io.jans.as.persistence.model.Scope> getResourceScopes(String resourceName)
-
putResource
public static void putResource(String resourceName, List<io.jans.as.persistence.model.Scope> scopeList)
-
-