Interface JwsCustomizer


public interface JwsCustomizer
A callback interface that provides a hook to call arbitrary methods on the JsonWebSignature prior to the JwtConsumer using it to verify the signature. This allows the usage of new and/or esoteric features such as setting the known critical headers without having to have specific support at JwtConsumer[Builder] layer.
  • Method Details

    • customize

      void customize(JsonWebSignature jws, List<JsonWebStructure> nestingContext)
      Customize the JsonWebSignature
      Parameters:
      jws - the JsonWebSignature that can be customized prior to signature verification.
      nestingContext - a list of JOSE objects, if any, in which the JWS was nested. The last item in the list is the outer most JOSE object (not including the current JWS).