Class CompositeProviderSelectionPolicy

  • All Implemented Interfaces:
    ProviderSelectionPolicy

    public final class CompositeProviderSelectionPolicy
    extends Object
    implements ProviderSelectionPolicy
    A provider selection policy that supports composing multiple providers (current Authentication and Outbound) into a single virtual security provider.

    Example configuration:

     security.provider-policy {
      type = "COMPOSITE"
      # explicit name of this policy (to be used when this is not the default or when we want to explicitly reference it)
      name = "composite"
      # whether this is the default provider or not (if not, must be explicitly defined by name, if yes, it is returned)
      default = true
      authentication: [
      {
          name = "first"
          flag = "REQUIRED"
      },
      {
          name = "second"
      }]
     outbound: [
      {
          name = "first"
      },
      {
          name = "second"
      }]
     }