Class HttpAuthenticators

java.lang.Object
dev.resteasy.client.util.authentication.HttpAuthenticators

public class HttpAuthenticators extends Object
A utility to define the filter to place on a REST client or on a request.
Author:
James R. Perkins
  • Constructor Details

    • HttpAuthenticators

      public HttpAuthenticators()
  • Method Details

    • basic

      public static HttpAuthorizationFilter basic(UserCredentials credentials)
      Creates a client request filter which will handle BASIC authentication.
      Parameters:
      credentials - the authentication credentials
      Returns:
      the client request filter
    • basic

      public static HttpAuthorizationFilter basic(int limit, UserCredentials credentials)
      Creates a client request filter which will handle BASIC authentication.
      Parameters:
      limit - the maximum number of entries to cache for repeat requests
      credentials - the authentication credentials
      Returns:
      the client request filter
    • digest

      public static HttpAuthorizationFilter digest(UserCredentials credentials)
      Creates a client request filter which will handle DIGEST authentication.
      Parameters:
      credentials - the authentication credentials
      Returns:
      the client request filter
    • digest

      public static HttpAuthorizationFilter digest(int limit, UserCredentials credentials)
      Creates a client request filter which will handle DIGEST authentication.
      Parameters:
      limit - the maximum number of entries to cache for repeat requests
      credentials - the authentication credentials
      Returns:
      the client request filter
    • available

      public static HttpAuthorizationFilter available(UserCredentials credentials)
      Creates a client request filter for BASIC and DIGEST authentication.
      Parameters:
      credentials - the authentication credentials
      Returns:
      the client request filter
    • available

      public static HttpAuthorizationFilter available(int limit, UserCredentials credentials)
      Creates a client request filter for BASIC and DIGEST authentication.
      Parameters:
      limit - the maximum number of entries to cache for repeat requests
      credentials - the authentication credentials
      Returns:
      the client request filter