Class SecurityAuditLoggerHandler

java.lang.Object
io.vertx.mutiny.ext.web.handler.SecurityAuditLoggerHandler
All Implemented Interfaces:
MutinyDelegate, io.vertx.core.Handler<RoutingContext>, PlatformHandler, Consumer<RoutingContext>

public class SecurityAuditLoggerHandler extends Object implements io.vertx.core.Handler<RoutingContext>, PlatformHandler, Consumer<RoutingContext>, MutinyDelegate
A handler that logs security audit events. This handler is to be used with the underlying logger io.vertx.ext.auth.audit. This handler will ensure that logs are structured and that sensitive data is masked. This information can be used to feed SIEM or EDR/XDR tools to monitor and detect security incidents.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Paulo Lopes
See Also:
  • SecurityAuditLoggerHandler
  • Field Details

  • Constructor Details

    • SecurityAuditLoggerHandler

      public SecurityAuditLoggerHandler(io.vertx.ext.web.handler.SecurityAuditLoggerHandler delegate)
      Create a new instance of SecurityAuditLoggerHandler delegating to the given (non-null) instance of SecurityAuditLoggerHandler.
    • SecurityAuditLoggerHandler

      public SecurityAuditLoggerHandler(Object delegate)
  • Method Details

    • accept

      public void accept(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      accept in interface Consumer<RoutingContext>
      Specified by:
      accept in interface PlatformHandler
    • handle

      public void handle(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
      Specified by:
      handle in interface PlatformHandler
    • getDelegate

      public io.vertx.ext.web.handler.SecurityAuditLoggerHandler getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Specified by:
      getDelegate in interface PlatformHandler
      Returns:
      the delegate instance
    • create

      public static SecurityAuditLoggerHandler create()
      Create a new instance of the handler. For each request the audit data is collected and will be logged explicitly by AuthorizationHandler and AuthorizationHandler instances. The handler will also log the final status of the current request. The marker kinds are defined in the enum Marker.
    • newInstance

      public static SecurityAuditLoggerHandler newInstance(io.vertx.ext.web.handler.SecurityAuditLoggerHandler delegate)
      Creates a new instance of the SecurityAuditLoggerHandler.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object