Class BasicAuthenticationErrorInterceptor<A extends io.inverno.mod.http.base.ExchangeContext,B extends ErrorExchange<A>>

Type Parameters:
A - the context type
B - the error exchange type
All Implemented Interfaces:
ExchangeInterceptor<A,B>

public class BasicAuthenticationErrorInterceptor<A extends io.inverno.mod.http.base.ExchangeContext,B extends ErrorExchange<A>> extends HttpAuthenticationErrorInterceptor<A,B>

An HTTP authentication error interceptor that implements RFC 7617 The 'Basic' HTTP Authentication Scheme.

As per RFC 7617, a basic challenge with the realm parameter is sent to the requester to initiate basic HTTP authentication.

Since:
1.5
Author:
Jeremy Kuhn
  • Constructor Details

    • BasicAuthenticationErrorInterceptor

      public BasicAuthenticationErrorInterceptor(String realm)

      Creates a basic authentication error interceptor.

      Parameters:
      realm - the realm
  • Method Details