Class UserPrincipalValidator.Builder
java.lang.Object
io.helidon.security.jwt.UserPrincipalValidator.Builder
- All Implemented Interfaces:
Builder<io.helidon.security.jwt.CommonValidator.BaseBuilder<UserPrincipalValidator.Builder, UserPrincipalValidator>, UserPrincipalValidator>, Supplier<UserPrincipalValidator>
- Enclosing class:
UserPrincipalValidator
Builder of the
UserPrincipalValidator.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.mandatory(boolean mandatory) Whether handled claim is mandatory to be present.protected UserPrincipalValidator.Builderme()Typed builder instance.missingClaimMessage(String missingClaimMessage) Custom missing claim error message.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault UserPrincipalValidatorget()default io.helidon.security.jwt.CommonValidator.BaseBuilder<UserPrincipalValidator.Builder, UserPrincipalValidator> identity()Instance of this builder as the correct type.default io.helidon.security.jwt.CommonValidator.BaseBuilder<UserPrincipalValidator.Builder, UserPrincipalValidator> update(Consumer<io.helidon.security.jwt.CommonValidator.BaseBuilder<UserPrincipalValidator.Builder, UserPrincipalValidator>> consumer) Update the builder in a fluent API way.
-
Method Details
-
build
Description copied from interface:BuilderBuild 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
Typed builder instance.- Returns:
- this builder instance
-