Class AuthenticateRequestInterceptor
java.lang.Object
edu.suffolk.litlab.efsp.server.auth.AuthenticateRequestInterceptor
- All Implemented Interfaces:
jakarta.ws.rs.container.ContainerRequestFilter
@Component
@Provider
@Priority(1000)
public class AuthenticateRequestInterceptor
extends Object
implements jakarta.ws.rs.container.ContainerRequestFilter
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticateRequestInterceptor(Supplier<LoginDatabase> ldSupplier, SecurityHub securityHub) -
Method Summary
Modifier and TypeMethodDescriptionvoidfilter(jakarta.ws.rs.container.ContainerRequestContext requestContext) Gets the Tyler login token of the request, if it's present.static Optional<Jurisdiction> getJurisdiction(String path)
-
Field Details
-
API_KEY_HEADER
- See Also:
-
-
Constructor Details
-
AuthenticateRequestInterceptor
-
-
Method Details
-
filter
public void filter(jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException - Specified by:
filterin interfacejakarta.ws.rs.container.ContainerRequestFilter- Throws:
IOException
-
getJurisdiction
-
getCreds
Gets the Tyler login token of the request, if it's present.Based on what the current path of the request is (it needs to be under "jurisdictions/..." to get the right login token).
-