Class SecurityStrategy

java.lang.Object
org.zalando.logbook.core.SecurityStrategy
All Implemented Interfaces:
org.zalando.logbook.Strategy

@API(status=MAINTAINED) public final class SecurityStrategy extends Object implements org.zalando.logbook.Strategy
A SecurityStrategy is a strategy which is meant to be used in server-side environments to give the best possible compromise between security and observability.

This strategy discards requests bodies.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.zalando.logbook.HttpRequest
    process(org.zalando.logbook.HttpRequest request)
     
    void
    write(org.zalando.logbook.Correlation correlation, org.zalando.logbook.HttpRequest request, org.zalando.logbook.HttpResponse response, org.zalando.logbook.Sink sink)
     
    void
    write(org.zalando.logbook.Precorrelation precorrelation, org.zalando.logbook.HttpRequest request, org.zalando.logbook.Sink sink)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.zalando.logbook.Strategy

    process
  • Constructor Details

    • SecurityStrategy

      public SecurityStrategy()
  • Method Details

    • process

      public org.zalando.logbook.HttpRequest process(org.zalando.logbook.HttpRequest request)
      Specified by:
      process in interface org.zalando.logbook.Strategy
    • write

      public void write(org.zalando.logbook.Precorrelation precorrelation, org.zalando.logbook.HttpRequest request, org.zalando.logbook.Sink sink)
      Specified by:
      write in interface org.zalando.logbook.Strategy
    • write

      public void write(org.zalando.logbook.Correlation correlation, org.zalando.logbook.HttpRequest request, org.zalando.logbook.HttpResponse response, org.zalando.logbook.Sink sink) throws IOException
      Specified by:
      write in interface org.zalando.logbook.Strategy
      Throws:
      IOException