Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ALL - Enum constant in enum class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement.Operator
- allow(RestRequest, RestResponse) - Method in class com.svenruppert.jsentinel.rest.RestJSentinelVersionFilter
-
Convenience overload that derives
routefromrequest.path(). - allow(RestRequest, RestResponse, String) - Method in class com.svenruppert.jsentinel.rest.RestJSentinelVersionFilter
-
Runs the drift check.
- ANY - Enum constant in enum class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement.Operator
- apply(AuthorizationDecision, RestResponse) - Method in class com.svenruppert.jsentinel.rest.HttpStatusDecisionMapper
-
Applies a decision to the response.
- authorizeAndHandle(RestRequest, RestResponse, RestHandler, AnnotatedElement) - Method in class com.svenruppert.jsentinel.rest.RestAuthorizationFilter
-
Authorizes and executes the handler when access is granted.
- authorizeAndHandle(RestRequest, RestResponse, RestHandler, AnnotatedElement, String, Map) - Method in class com.svenruppert.jsentinel.rest.RestAuthorizationFilter
-
Authorizes and executes the handler when access is granted.
B
- BearerTokenExtractor - Class in com.svenruppert.jsentinel.rest
-
Extracts a bearer token from the
Authorizationheader. - BearerTokenExtractor() - Constructor for class com.svenruppert.jsentinel.rest.BearerTokenExtractor
- bind(TokenCredential) - Method in class com.svenruppert.jsentinel.credential.propagation.rest.ThreadLocalTokenCredentialStore
- body(String) - Method in interface com.svenruppert.jsentinel.rest.RestResponse
-
Sets the response body.
- bodyAsString(Charset) - Method in interface com.svenruppert.jsentinel.rest.BodyRestRequest
- bodyAsUtf8() - Method in interface com.svenruppert.jsentinel.rest.BodyRestRequest
- bodyBytes() - Method in interface com.svenruppert.jsentinel.rest.BodyRestRequest
-
Returns the raw body bytes.
- BodyRestRequest - Interface in com.svenruppert.jsentinel.rest
-
Body-capable
RestRequest. - BootstrapRestStatusMapper - Class in com.svenruppert.jsentinel.rest
-
Maps an
InitialAdminCreationResultto an HTTP status code and a stable error code suitable for inclusion in a JSON response body. - BootstrapRestStatusMapper() - Constructor for class com.svenruppert.jsentinel.rest.BootstrapRestStatusMapper
C
- classLevel() - Method in record class com.svenruppert.jsentinel.rest.openapi.HandlerJSentinelMetadata
-
Returns the value of the
classLevelrecord component. - clear() - Method in class com.svenruppert.jsentinel.credential.propagation.rest.ThreadLocalTokenCredentialStore
- com.svenruppert.jsentinel.credential.propagation.rest - package com.svenruppert.jsentinel.credential.propagation.rest
- com.svenruppert.jsentinel.rest - package com.svenruppert.jsentinel.rest
- com.svenruppert.jsentinel.rest.openapi - package com.svenruppert.jsentinel.rest.openapi
- create(RestRequest, Optional, String, Map) - Method in class com.svenruppert.jsentinel.rest.RestAccessContextFactory
-
Creates an access context from a REST request.
- current() - Method in class com.svenruppert.jsentinel.credential.propagation.rest.ThreadLocalTokenCredentialStore
E
- equals(Object) - Method in record class com.svenruppert.jsentinel.rest.openapi.HandlerJSentinelMetadata
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.svenruppert.jsentinel.rest.RestJSentinelVersionContext
-
Indicates whether some other object is "equal to" this one.
- errorCodeFor(InitialAdminCreationResult) - Method in class com.svenruppert.jsentinel.rest.BootstrapRestStatusMapper
- extract(RestRequest) - Method in class com.svenruppert.jsentinel.rest.BearerTokenExtractor
-
Returns the trimmed bearer token, or empty if missing / wrong scheme / blank.
F
- first(RestRequest, String) - Static method in class com.svenruppert.jsentinel.rest.RestHeaders
-
Case-insensitive lookup of the first matching header value.
G
- generate(Class) - Method in class com.svenruppert.jsentinel.rest.openapi.OpenApiJSentinelMetadataGenerator
-
Runs the extraction.
H
- handle(RestRequest, RestResponse) - Method in interface com.svenruppert.jsentinel.rest.RestHandler
-
Handles the request.
- handlerClassName() - Method in record class com.svenruppert.jsentinel.rest.openapi.HandlerJSentinelMetadata
-
Returns the value of the
handlerClassNamerecord component. - HandlerJSentinelMetadata - Record Class in com.svenruppert.jsentinel.rest.openapi
-
Result of running
OpenApiJSentinelMetadataGenerator.generate(Class)on a handler class. - HandlerJSentinelMetadata(String, List, Map) - Constructor for record class com.svenruppert.jsentinel.rest.openapi.HandlerJSentinelMetadata
-
Validates the components and freezes the collections.
- hashCode() - Method in record class com.svenruppert.jsentinel.rest.openapi.HandlerJSentinelMetadata
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.svenruppert.jsentinel.rest.RestJSentinelVersionContext
-
Returns a hash code value for this object.
- header(String, String) - Method in interface com.svenruppert.jsentinel.rest.RestResponse
-
Sets a response header.
- headers() - Method in interface com.svenruppert.jsentinel.rest.RestRequest
-
Request headers.
- HttpStatusDecisionMapper - Class in com.svenruppert.jsentinel.rest
-
Maps semantic authorization decisions to generic HTTP response behavior.
- HttpStatusDecisionMapper() - Constructor for class com.svenruppert.jsentinel.rest.HttpStatusDecisionMapper
I
- isEmpty() - Method in record class com.svenruppert.jsentinel.rest.openapi.HandlerJSentinelMetadata
J
- JSentinelRequirement - Record Class in com.svenruppert.jsentinel.rest.openapi
-
Adapter-neutral description of a single security requirement extracted from a
@Requires…/@ProtectedByannotation on a REST handler. - JSentinelRequirement(JSentinelRequirement.Scheme, JSentinelRequirement.Operator, List) - Constructor for record class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement
-
Validates the components and freezes the values list.
- JSentinelRequirement.Operator - Enum Class in com.svenruppert.jsentinel.rest.openapi
-
How the
valuescombine. - JSentinelRequirement.Scheme - Enum Class in com.svenruppert.jsentinel.rest.openapi
-
What the requirement is about.
M
- method() - Method in interface com.svenruppert.jsentinel.rest.RestRequest
-
HTTP method.
- methods() - Method in record class com.svenruppert.jsentinel.rest.openapi.HandlerJSentinelMetadata
-
Returns the value of the
methodsrecord component.
O
- OpenApiJSentinelMetadataGenerator - Class in com.svenruppert.jsentinel.rest.openapi
-
Extracts security-annotation metadata from a REST handler class so applications can render an OpenAPI
securitysection without re-implementing annotation introspection. - OpenApiJSentinelMetadataGenerator() - Constructor for class com.svenruppert.jsentinel.rest.openapi.OpenApiJSentinelMetadataGenerator
-
Default constructor.
- operator() - Method in record class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement
-
Returns the value of the
operatorrecord component.
P
- path() - Method in interface com.svenruppert.jsentinel.rest.RestRequest
-
Request path.
- PERMISSION - Enum constant in enum class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement.Scheme
- POLICY - Enum constant in enum class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement.Scheme
Q
- queryParameters() - Method in interface com.svenruppert.jsentinel.rest.RestRequest
-
Query parameters.
R
- requireAuthenticated(RestRequest, RestResponse, RestHandler) - Method in class com.svenruppert.jsentinel.rest.RestAuthenticationFilter
- resolveJSentinelVersionContext(RestRequest) - Method in interface com.svenruppert.jsentinel.rest.RestSubjectResolver
-
Resolves the session's security-version snapshot for
RestJSentinelVersionFilter. - resolveSessionMetadata(RestRequest) - Method in interface com.svenruppert.jsentinel.rest.RestSubjectResolver
-
Resolves session metadata for the current request.
- resolveSubject(RestRequest) - Method in interface com.svenruppert.jsentinel.rest.RestSubjectResolver
-
Resolves the current subject.
- RestAccessContextFactory - Class in com.svenruppert.jsentinel.rest
-
Creates neutral access contexts from REST requests.
- RestAccessContextFactory() - Constructor for class com.svenruppert.jsentinel.rest.RestAccessContextFactory
- RestAuthenticationFilter - Class in com.svenruppert.jsentinel.rest
-
Authenticated-only REST filter for endpoints that require any subject but no specific permission.
- RestAuthenticationFilter(RestSubjectResolver) - Constructor for class com.svenruppert.jsentinel.rest.RestAuthenticationFilter
- RestAuthorizationFilter - Class in com.svenruppert.jsentinel.rest
-
Authorizes a REST request before the protected handler is executed.
- RestAuthorizationFilter(RestSubjectResolver) - Constructor for class com.svenruppert.jsentinel.rest.RestAuthorizationFilter
-
Creates a REST authorization filter.
- RestHandler - Interface in com.svenruppert.jsentinel.rest
-
Handler that executes a REST operation.
- RestHeaders - Class in com.svenruppert.jsentinel.rest
-
Helpers for working with
RestRequestheaders. - RestJSentinelVersionContext - Record Class in com.svenruppert.jsentinel.rest
-
Per-request session security context surfaced by a
RestSubjectResolversoRestJSentinelVersionFiltercan run a drift check before authorization. - RestJSentinelVersionContext(SubjectId, TenantId, JSentinelVersion, String) - Constructor for record class com.svenruppert.jsentinel.rest.RestJSentinelVersionContext
-
Validates the components and normalises
nulltenant. - RestJSentinelVersionFilter - Class in com.svenruppert.jsentinel.rest
-
REST adapter for
JSentinelVersionEnforcer. - RestJSentinelVersionFilter(RestSubjectResolver, JSentinelVersionEnforcer) - Constructor for class com.svenruppert.jsentinel.rest.RestJSentinelVersionFilter
- RestRequest - Interface in com.svenruppert.jsentinel.rest
-
Minimal framework-independent REST request abstraction.
- RestResponse - Interface in com.svenruppert.jsentinel.rest
-
Minimal framework-independent REST response abstraction.
- RestSubjectResolver - Interface in com.svenruppert.jsentinel.rest
-
Resolves the current security subject from a REST request.
- RestTokenCredentialFilter - Class in com.svenruppert.jsentinel.credential.propagation.rest
-
Request-scope filter that binds the inbound Bearer token into a
TokenCredentialStoreand clears it in thefinallyblock. - RestTokenCredentialFilter(TokenCredentialStore) - Constructor for class com.svenruppert.jsentinel.credential.propagation.rest.RestTokenCredentialFilter
- ROLE - Enum constant in enum class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement.Scheme
- runWithCredential(RestRequest, Runnable) - Method in class com.svenruppert.jsentinel.credential.propagation.rest.RestTokenCredentialFilter
-
Binds the Bearer token (if any) and runs the supplied handler.
S
- scheme() - Method in record class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement
-
Returns the value of the
schemerecord component. - SESSION_STALE_CHALLENGE - Static variable in class com.svenruppert.jsentinel.rest.RestJSentinelVersionFilter
-
Header value advertised when the session has drifted (RFC 7235 style).
- sessionId() - Method in record class com.svenruppert.jsentinel.rest.RestJSentinelVersionContext
-
Returns the value of the
sessionIdrecord component. - snapshot() - Method in record class com.svenruppert.jsentinel.rest.RestJSentinelVersionContext
-
Returns the value of the
snapshotrecord component. - status(int) - Method in interface com.svenruppert.jsentinel.rest.RestResponse
-
Sets the response status.
- statusFor(InitialAdminCreationResult) - Method in class com.svenruppert.jsentinel.rest.BootstrapRestStatusMapper
- STEP_UP_SCHEME - Static variable in class com.svenruppert.jsentinel.rest.HttpStatusDecisionMapper
-
Auth scheme used in the
WWW-Authenticateheader when an adapter challenges for a step-up. - subjectId() - Method in record class com.svenruppert.jsentinel.rest.RestJSentinelVersionContext
-
Returns the value of the
subjectIdrecord component.
T
- tenant() - Method in record class com.svenruppert.jsentinel.rest.RestJSentinelVersionContext
-
Returns the value of the
tenantrecord component. - ThreadLocalTokenCredentialStore - Class in com.svenruppert.jsentinel.credential.propagation.rest
-
REST-adapter default
TokenCredentialStorebacked by a per-threadThreadLocalslot. - ThreadLocalTokenCredentialStore() - Constructor for class com.svenruppert.jsentinel.credential.propagation.rest.ThreadLocalTokenCredentialStore
- toString() - Method in record class com.svenruppert.jsentinel.rest.openapi.HandlerJSentinelMetadata
-
Returns a string representation of this record class.
- toString() - Method in record class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement
-
Returns a string representation of this record class.
- toString() - Method in record class com.svenruppert.jsentinel.rest.RestJSentinelVersionContext
-
Returns a string representation of this record class.
V
- valueOf(String) - Static method in enum class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement.Operator
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement.Scheme
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement.Operator
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement.Scheme
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Method in record class com.svenruppert.jsentinel.rest.openapi.JSentinelRequirement
-
Returns the value of the
valuesrecord component.
W
- WWW_AUTHENTICATE - Static variable in class com.svenruppert.jsentinel.rest.RestHeaders
-
Standard
WWW-Authenticateresponse header name (RFC 7235).
All Classes and Interfaces|All Packages|Constant Field Values