Class JwtValidator.Builder<T>

java.lang.Object
io.micronaut.security.token.jwt.validator.JwtValidator.Builder<T>
Type Parameters:
T - Request
Enclosing class:
JwtValidator<T>

public static final class JwtValidator.Builder<T> extends Object
A builder for JwtValidator.
  • Method Details

    • withSignatures

      public JwtValidator.Builder withSignatures(SignatureConfiguration... signatureConfigurations)
      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

      public JwtValidator.Builder withEncryptions(EncryptionConfiguration... encryptionConfigurations)
      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

      public JwtValidator.Builder withClaimValidators(JwtClaimsValidator... jwtClaimsValidators)
      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

      public JwtValidator<T> build()
      Builds the validator.
      Returns:
      The validator