Class BasicAuthentication

java.lang.Object
org.jboss.resteasy.client.jaxrs.internal.BasicAuthentication
All Implemented Interfaces:
jakarta.ws.rs.client.ClientRequestFilter

public class BasicAuthentication extends Object implements jakarta.ws.rs.client.ClientRequestFilter
Client filter that will do basic authentication. You must allocate it and then register it with the Client or WebTarget
Version:
$Revision: 1 $
Author:
Bill Burke
  • Constructor Details

    • BasicAuthentication

      public BasicAuthentication(String username, String password)
      Parameters:
      username - user name
      password - password
  • 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