Class AudienceValidator.Builder

java.lang.Object
io.helidon.security.jwt.AudienceValidator.Builder
All Implemented Interfaces:
Builder<io.helidon.security.jwt.CommonValidator.BaseBuilder<AudienceValidator.Builder,AudienceValidator>,AudienceValidator>, Supplier<AudienceValidator>
Enclosing class:
AudienceValidator

public static final class AudienceValidator.Builder extends Object
Builder of the AudienceValidator.
  • Method Details

    • build

      public AudienceValidator build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Returns:
      instance of the built type
    • addExpectedAudience

      public AudienceValidator.Builder addExpectedAudience(String audience)
      Add expected audience value.
      Parameters:
      audience - expected audience
      Returns:
      updated builder instance
    • expectedAudience

      public AudienceValidator.Builder expectedAudience(Set<String> expectedAudience)
      Overwrite previously set audience with the new Set of values.
      Parameters:
      expectedAudience - expected audience values
      Returns:
      updated builder instance
    • mandatory

      public AudienceValidator.Builder mandatory(boolean mandatory)
      Whether handled claim is mandatory to be present. Default value is false.
      Parameters:
      mandatory - mandatory to be present
      Returns:
      updated builder instance
    • missingClaimMessage

      public AudienceValidator.Builder missingClaimMessage(String missingClaimMessage)
      Custom missing claim error message.
      Parameters:
      missingClaimMessage - missing claim error message
      Returns:
      updated builder instance
    • me

      protected AudienceValidator.Builder me()