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
Builder of the
AudienceValidator
.-
Method Summary
Modifier and TypeMethodDescriptionaddExpectedAudience
(String audience) Add expected audience value.build()
Build the instance from this builder.expectedAudience
(Set<String> expectedAudience) Overwrite previously set audience with the newSet
of values.mandatory
(boolean mandatory) Whether handled claim is mandatory to be present.protected AudienceValidator.Builder
me()
missingClaimMessage
(String missingClaimMessage) Custom missing claim error message.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Returns:
- instance of the built type
-
addExpectedAudience
Add expected audience value.- Parameters:
audience
- expected audience- Returns:
- updated builder instance
-
expectedAudience
Overwrite previously set audience with the newSet
of values.- Parameters:
expectedAudience
- expected audience values- Returns:
- updated builder instance
-
mandatory
Whether handled claim is mandatory to be present. Default value isfalse
.- Parameters:
mandatory
- mandatory to be present- Returns:
- updated builder instance
-
missingClaimMessage
Custom missing claim error message.- Parameters:
missingClaimMessage
- missing claim error message- Returns:
- updated builder instance
-
me
-