Interface SecurityResponseMapper

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SecurityResponseMapper
A SecurityResponse mapper that is called when a security error is encountered. Gives a chance for applications to craft a more informative response to the user as to the cause of the error.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    aborted(SecurityResponse securityResponse, Response.ResponseBuilder responseBuilder)
    Called when a security response is aborted due to a security problem (e.g.
  • Method Details

    • aborted

      void aborted(SecurityResponse securityResponse, Response.ResponseBuilder responseBuilder)
      Called when a security response is aborted due to a security problem (e.g. authentication failure). Handles control to the application to construct the response returned to the client. Security providers can provide context to mappers using the Helidon context mechanism.
      Parameters:
      securityResponse - the security response
      responseBuilder - the response builder
      See Also: