Class AuthenticationInterceptor

java.lang.Object
ai.wanaku.cli.main.support.AuthenticationInterceptor
All Implemented Interfaces:
jakarta.ws.rs.client.ClientRequestFilter

public class AuthenticationInterceptor extends Object implements jakarta.ws.rs.client.ClientRequestFilter
A JAX-RS client request filter that automatically adds authentication headers to outgoing requests based on stored credentials.
  • Constructor Details

    • AuthenticationInterceptor

      public AuthenticationInterceptor()
    • AuthenticationInterceptor

      public AuthenticationInterceptor(AuthCredentialStore credentialStore)
  • Method Details

    • filter

      public void filter(jakarta.ws.rs.client.ClientRequestContext requestContext) throws IOException
      Specified by:
      filter in interface jakarta.ws.rs.client.ClientRequestFilter
      Throws:
      IOException