Package org.jboss.resteasy.client.jaxrs.internal

## Class BasicAuthentication

- java.lang.Object
- - org.jboss.resteasy.client.jaxrs.internal.BasicAuthentication

- All Implemented Interfaces:
    `javax.ws.rs.client.ClientRequestFilter`

      public class BasicAuthentication
      extends Object
      implements javax.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 Summary

    Constructors
    Constructor | Description
    --- | ---
    `BasicAuthentication​(String username, String password)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `filter​(javax.ws.rs.client.ClientRequestContext requestContext)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BasicAuthentication

          public BasicAuthentication​(String username,
                                     String password)

      Parameters:
        `username` - user name
        `password` - password

  - ### Method Detail

    - #### filter

          public void filter​(javax.ws.rs.client.ClientRequestContext requestContext)
                      throws IOException

      Specified by:
        `filter` in interface `javax.ws.rs.client.ClientRequestFilter`
      Throws:
        `IOException`