Class JwtValidator.Builder<T>
java.lang.Object
io.micronaut.security.token.jwt.validator.JwtValidator.Builder<T>
- Type Parameters:
T
- Request
- Enclosing class:
- JwtValidator<T>
A builder for
JwtValidator
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the validator.withClaimValidators
(JwtClaimsValidator... jwtClaimsValidators) Replaces any existing claim validators with the ones supplied.withClaimValidators
(Collection<? extends JwtClaimsValidator> jwtClaimsValidators) Replaces any existing claim validators with the ones supplied.withEncryptions
(EncryptionConfiguration... encryptionConfigurations) Replaces any existing configurations with the ones supplied.withEncryptions
(Collection<? extends EncryptionConfiguration> encryptionConfigurations) Replaces any existing configurations with the ones supplied.withSignatures
(SignatureConfiguration... signatureConfigurations) Replaces any existing configurations with the ones supplied.withSignatures
(Collection<? extends SignatureConfiguration> signatureConfigurations) Replaces any existing configurations with the ones supplied.
-
Method Details
-
withSignatures
Replaces any existing configurations with the ones supplied.- Parameters:
signatureConfigurations
- The signature configurations to validate with- Returns:
- The builder
-
withSignatures
public JwtValidator.Builder withSignatures(Collection<? extends SignatureConfiguration> signatureConfigurations) Replaces any existing configurations with the ones supplied.- Parameters:
signatureConfigurations
- The signature configurations to validate with- Returns:
- The builder
-
withEncryptions
Replaces any existing configurations with the ones supplied.- Parameters:
encryptionConfigurations
- The encryption configurations to validate with- Returns:
- The builder
-
withEncryptions
public JwtValidator.Builder withEncryptions(Collection<? extends EncryptionConfiguration> encryptionConfigurations) Replaces any existing configurations with the ones supplied.- Parameters:
encryptionConfigurations
- The encryption configurations to validate with- Returns:
- The builder
-
withClaimValidators
Replaces any existing claim validators with the ones supplied.- Parameters:
jwtClaimsValidators
- The claims validators to use- Returns:
- The builder
-
withClaimValidators
public JwtValidator.Builder withClaimValidators(Collection<? extends JwtClaimsValidator> jwtClaimsValidators) Replaces any existing claim validators with the ones supplied.- Parameters:
jwtClaimsValidators
- The claims validators to use- Returns:
- The builder
-
build
Builds the validator.- Returns:
- The validator
-