Interface JweCustomizer


public interface JweCustomizer
A callback interface that provides a hook to call arbitrary methods on the JsonWebEncryption prior to the JwtConsumer using it to decrypt the content. 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(JsonWebEncryption jwe, List<JsonWebStructure> nestingContext)
      Customize the JsonWebEncryption
      Parameters:
      jwe - the JsonWebEncryption that can be customized prior to decryption
      nestingContext - a list of JOSE objects, if any, in which the JWE was nested. The last item in the list is the outer most JOSE object (not including the current JWE).