Package org.mockserver.scim
Class ScimResourceStore
java.lang.Object
org.mockserver.scim.ScimResourceStore
In-memory state backing the mock SCIM 2.0 provider.
Holds one ScimResourceStore.Provider per registered basePath (e.g. /scim/v2). Each
provider owns a Users and a Groups CrudDataStore plus the per-provider
enforcement flags (bearer token, filter, patch). The SCIM class callbacks are instantiated fresh
per request and therefore cannot share instance state, so they resolve their provider here by the
request path.
This is a process-wide singleton, mirroring OidcAuthorizationStore
and the other in-memory registries. reset() clears all providers and is wired into
HttpState.reset().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImmutable description of a registered SCIM provider: its Users and Groups stores plus the per-provider enforcement flags. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScimResourceStoreproviderForBasePath(String basePath) providerForRequestPath(String requestPath) Finds the provider whose base path is the longest prefix of the given request path, ornullif none registered.voidregisterProvider(ScimResourceStore.Provider provider) Registers (or replaces) the provider serving the given base path.voidreset()
-
Method Details
-
getInstance
-
registerProvider
Registers (or replaces) the provider serving the given base path. The most recently registered provider for a base path wins, so re-runningPUT /mockserver/scimwith the same base path refreshes the seeded data and enforcement flags. -
providerForRequestPath
Finds the provider whose base path is the longest prefix of the given request path, ornullif none registered. Longest-prefix matching lets overlapping base paths coexist. -
providerForBasePath
-
reset
public void reset()
-