Interface ProcessingExceptionConfig

All Known Implementing Classes:
DefaultProcessingExceptionConfig

public interface ProcessingExceptionConfig
Configuration of default behavior of library with
  • Method Details

    • defaultMessageType

      @NotNull @NotNull MessageType defaultMessageType()
      Specifies a default message type when no MessageType is specified within message.
      Returns:
      Default message type to use.
    • defaultSecurityPolicy

      @NotNull @NotNull SecurityPolicy defaultSecurityPolicy()
      Specifies what default SecurityPolicy to use, when none is specified within message.
      Returns:
      Default SecurityPolicy to use.
    • exposeSecurityPolicies

      @NotNull @NotNull Set<SecurityPolicy> exposeSecurityPolicies()
      Allowed/Safe to use SecurityPolicy in the application. All other should are considered as unsafe and so cleaned out before exposing.
      Returns:
      A set of security levels that could be exposed.
    • failoverProcessingMessage

      @NotNull @NotNull ProcessingMessage failoverProcessingMessage()
      A failover processing message that is used when there is not enough information provided and the system has to return a message. This may happen when all information is sanitized or no other information is available.
      Returns:
      A default message to use.
    • logSecurityPolicies

      @NotNull @NotNull Set<SecurityPolicy> logSecurityPolicies()
      Allowed/Safe to use SecurityPolicy in the application. All other should are considered as unsafe and so cleaned out before logging.
      Returns:
      A set of security levels that could be logged.