Class AuthenticateRequestInterceptor
java.lang.Object
edu.suffolk.litlab.efsp.server.utils.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilter(jakarta.ws.rs.container.ContainerRequestContext requestContext) static Optional<TylerUserNamePassword> getCreds(jakarta.ws.rs.container.ContainerRequestContext requestContext, Jurisdiction jurisdiction) 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
public static Optional<TylerUserNamePassword> getCreds(jakarta.ws.rs.container.ContainerRequestContext requestContext, Jurisdiction jurisdiction) 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).
-