Class SokletScim
java.lang.Object
com.revetsec.soklet.SokletScim
Thin SCIM transport helpers for application-routed Soklet endpoints. Applications select the authenticated caller,
tenant, resource type and transaction, and enforce route methods. Each parser invokes one core operation using the
unchanged materialized raw query, body and physical header occurrences.
Reject
Request.isContentTooLarge() before invoking a body helper, using an application response such as
provider.errorResponse(ScimError.requestTooLargeInstance()). Body helpers also fail closed if the caller
omits this check. Soklet discards an oversized request body; the transport cannot pass it to core.
Configure upstream body, complete-request and header limits before requests are materialized. The application
also supplies authentication challenges and method-specific Allow headers when composing transport responses.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionattributeSelectionResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull Request request) Parses resource-response selection from the unchanged raw query.static @NonNull ScimIfMatchResultifMatchResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResource current, @NonNull Request request) Checks every original If-Match occurrence against the same current resource used by the application write.static @NonNull ScimIfNoneMatchResultifNoneMatchResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResource current, @NonNull Request request) Checks every original If-None-Match occurrence for application-routed GET or HEAD handling.patchRequestResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull Request request) Parses unchanged PatchOp bytes and original Content-Type occurrences.static @NonNull ScimQueryParseResultqueryResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull Request request) Parses the untouched resource-list query.replacementResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull ScimResource current, @NonNull Request request) Parses unchanged replacement bytes against the application-selected current resource.resourceResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull Request request) Parses unchanged create-resource bytes and original Content-Type occurrences.static @NonNull MarshaledResponseresponseFor(@NonNull ScimResponse response) Emits exactly the core-prepared status, header occurrences and body bytes, which may contain personal data.searchRequestResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull Request request) Parses unchanged SearchRequest bytes and original Content-Type occurrences.
-
Method Details
-
queryResultFor
@CheckReturnValue public static @NonNull ScimQueryParseResult queryResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull Request request) Parses the untouched resource-list query.- Parameters:
provider- the application's configured service providerresourceType- the application-selected registered resource typerequest- the materialized routed request- Returns:
- the core query result
- Since:
- 1.0.0
-
searchRequestResultFor
@CheckReturnValue public static @NonNull SokletRequestResult<@NonNull ScimQueryParseResult> searchRequestResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull Request request) Parses unchanged SearchRequest bytes and original Content-Type occurrences. The application should rejectrequest.isContentTooLarge()to emit an appropriate HTTP response.- Parameters:
provider- the application's configured service providerresourceType- the application-selected registered resource typerequest- the materialized routed request- Returns:
- the core query result
- Since:
- 1.0.0
-
resourceResultFor
@CheckReturnValue public static @NonNull SokletRequestResult<@NonNull ScimResourceParseResult> resourceResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull Request request) Parses unchanged create-resource bytes and original Content-Type occurrences. The application should rejectrequest.isContentTooLarge()to emit an appropriate HTTP response.- Parameters:
provider- the application's configured service providerresourceType- the application-selected registered resource typerequest- the materialized routed request- Returns:
- the core candidate resource result
- Since:
- 1.0.0
-
replacementResultFor
@CheckReturnValue public static @NonNull SokletRequestResult<@NonNull ScimResourceParseResult> replacementResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull ScimResource current, @NonNull Request request) Parses unchanged replacement bytes against the application-selected current resource. The application should rejectrequest.isContentTooLarge()to emit an appropriate HTTP response.- Parameters:
provider- the application's configured service providerresourceType- the application-selected registered resource typecurrent- the authoritative current resource used by the application transactionrequest- the materialized routed request- Returns:
- the core replacement candidate result
- Since:
- 1.0.0
-
patchRequestResultFor
@CheckReturnValue public static @NonNull SokletRequestResult<@NonNull ScimPatchParseResult> patchRequestResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull Request request) Parses unchanged PatchOp bytes and original Content-Type occurrences. The application should rejectrequest.isContentTooLarge()to emit an appropriate HTTP response.- Parameters:
provider- the application's configured service providerresourceType- the application-selected registered resource typerequest- the materialized routed request- Returns:
- the core schema-bound PATCH request result
- Since:
- 1.0.0
-
attributeSelectionResultFor
@CheckReturnValue public static @NonNull ScimAttributeSelectionResult attributeSelectionResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResourceType resourceType, @NonNull Request request) Parses resource-response selection from the unchanged raw query.- Parameters:
provider- the application's configured service providerresourceType- the application-selected registered resource typerequest- the materialized routed request- Returns:
- the core attribute-selection result
- Since:
- 1.0.0
-
ifMatchResultFor
@CheckReturnValue public static @NonNull ScimIfMatchResult ifMatchResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResource current, @NonNull Request request) Checks every original If-Match occurrence against the same current resource used by the application write.- Parameters:
provider- the application's configured service providercurrent- the authoritative current resourcerequest- the materialized routed request- Returns:
- the core conditional result
- Since:
- 1.0.0
-
ifNoneMatchResultFor
@CheckReturnValue public static @NonNull ScimIfNoneMatchResult ifNoneMatchResultFor(@NonNull ScimServiceProvider provider, @NonNull ScimResource current, @NonNull Request request) Checks every original If-None-Match occurrence for application-routed GET or HEAD handling.- Parameters:
provider- the application's configured service providercurrent- the authoritative current resourcerequest- the materialized routed request- Returns:
- the core conditional result
- Since:
- 1.0.0
-
responseFor
@CheckReturnValue public static @NonNull MarshaledResponse responseFor(@NonNull ScimResponse response) Emits exactly the core-prepared status, header occurrences and body bytes, which may contain personal data.- Parameters:
response- the restricted core-prepared response- Returns:
- the exact-byte Soklet response
- Since:
- 1.0.0
-