java.lang.Object
io.helidon.security.jwt.FieldValidator.Builder
- All Implemented Interfaces:
Builder<io.helidon.security.jwt.CommonValidator.BaseBuilder<FieldValidator.Builder,
,FieldValidator>, FieldValidator> Supplier<FieldValidator>
- Enclosing class:
FieldValidator
Builder of the
FieldValidator
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Set handled claim key.expectedValue
(String expectedValue) Expected value to be present in the supported claim.fieldAccessor
(Function<Jwt, Optional<String>> fieldAccessor) Function to extract field from JWT.mandatory
(boolean mandatory) Whether handled claim is mandatory to be present.protected FieldValidator.Builder
me()
missingClaimMessage
(String missingClaimMessage) Custom missing claim error message.Field name value.
-
Method Details
-
claimKey
Set handled claim key.- Parameters:
claimKey
- supported claim key- Returns:
- updated builder instance
-
name
Field name value.- Parameters:
name
- name of the field- Returns:
- updated builder instance
-
expectedValue
Expected value to be present in the supported claim.- Parameters:
expectedValue
- expected claim value- Returns:
- updated builder instance
-
fieldAccessor
Function to extract field from JWT.- Parameters:
fieldAccessor
- function to extract field from JWT- Returns:
- updated builder instance
-
scope
-
build
Description copied from interface:Builder
Build the instance from this builder.- Returns:
- instance of the built type
-
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
-