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 Details

  • Constructor Details

  • Method Details

    • filter

      public void filter(jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException
      Specified by:
      filter in interface jakarta.ws.rs.container.ContainerRequestFilter
      Throws:
      IOException
    • getJurisdiction

      public static Optional<Jurisdiction> getJurisdiction(String path)
    • getCreds

      public static Optional<UserCreds> getCreds(String token)
      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).