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 int
CACHE_LIFETIME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addScope(String resourceName, io.jans.configapi.core.util.ProtectionScopeType protectionScopeType, io.jans.as.persistence.model.Scope scope)
static Map<String,Map<io.jans.configapi.core.util.ProtectionScopeType,List<io.jans.as.persistence.model.Scope>>>
getAllResources()
static Map<String,io.jans.as.persistence.model.Scope>
getAllTypesOfScopes()
static io.jans.as.persistence.model.Scope
getGroupScope(String scopeName)
static Map<String,io.jans.as.persistence.model.Scope>
getGroupScopes()
static List<io.jans.as.persistence.model.Scope>
getResourceScopeByType(String resourceName, io.jans.configapi.core.util.ProtectionScopeType protectionScopeType)
static Map<io.jans.configapi.core.util.ProtectionScopeType,List<io.jans.as.persistence.model.Scope>>
getResourceScopes(String resourceName)
static io.jans.as.persistence.model.Scope
getScope(String scopeName)
static Map<String,io.jans.as.persistence.model.Scope>
getScopes()
static io.jans.as.persistence.model.Scope
getSuperScope(String scopeName)
static Map<String,io.jans.as.persistence.model.Scope>
getSuperScopes()
static void
putGroupScope(io.jans.as.persistence.model.Scope scope)
static void
putResource(String resourceName, Map<io.jans.configapi.core.util.ProtectionScopeType,List<io.jans.as.persistence.model.Scope>> scopeMap)
static void
putResourceScopeByType(String resourceName, io.jans.configapi.core.util.ProtectionScopeType protectionScopeType, List<io.jans.as.persistence.model.Scope> scopes)
static void
putScope(io.jans.as.persistence.model.Scope scope)
static void
putSuperScope(io.jans.as.persistence.model.Scope scope)
static void
raemoveAllResources()
static void
removeAllScopes()
static void
removeGroupScopes()
static void
removeSuperScopes()
-
-
-
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)
-
getGroupScope
public static io.jans.as.persistence.model.Scope getGroupScope(String scopeName)
-
putGroupScope
public static void putGroupScope(io.jans.as.persistence.model.Scope scope)
-
removeGroupScopes
public static void removeGroupScopes()
-
getSuperScope
public static io.jans.as.persistence.model.Scope getSuperScope(String scopeName)
-
putSuperScope
public static void putSuperScope(io.jans.as.persistence.model.Scope scope)
-
removeSuperScopes
public static void removeSuperScopes()
-
getAllTypesOfScopes
public static Map<String,io.jans.as.persistence.model.Scope> getAllTypesOfScopes()
-
raemoveAllResources
public static void raemoveAllResources()
-
putResource
public static void putResource(String resourceName, Map<io.jans.configapi.core.util.ProtectionScopeType,List<io.jans.as.persistence.model.Scope>> scopeMap)
-
putResourceScopeByType
public static void putResourceScopeByType(String resourceName, io.jans.configapi.core.util.ProtectionScopeType protectionScopeType, List<io.jans.as.persistence.model.Scope> scopes)
-
getAllResources
public static Map<String,Map<io.jans.configapi.core.util.ProtectionScopeType,List<io.jans.as.persistence.model.Scope>>> getAllResources()
-
getResourceScopes
public static Map<io.jans.configapi.core.util.ProtectionScopeType,List<io.jans.as.persistence.model.Scope>> getResourceScopes(String resourceName)
-
getResourceScopeByType
public static List<io.jans.as.persistence.model.Scope> getResourceScopeByType(String resourceName, io.jans.configapi.core.util.ProtectionScopeType protectionScopeType)
-
addScope
public static void addScope(String resourceName, io.jans.configapi.core.util.ProtectionScopeType protectionScopeType, io.jans.as.persistence.model.Scope scope)
-
-