public static final class JwtValidator.Builder
extends java.lang.Object
JwtValidator
.Modifier and Type | Method and Description |
---|---|
JwtValidator |
build()
Builds the validator.
|
JwtValidator.Builder |
withClaimValidators(java.util.Collection<? extends JwtClaimsValidator> jwtClaimsValidators)
Replaces any existing claim validators with the ones supplied.
|
JwtValidator.Builder |
withClaimValidators(JwtClaimsValidator... jwtClaimsValidators)
Replaces any existing claim validators with the ones supplied.
|
JwtValidator.Builder |
withEncryptions(java.util.Collection<? extends EncryptionConfiguration> encryptionConfigurations)
Replaces any existing configurations with the ones supplied.
|
JwtValidator.Builder |
withEncryptions(EncryptionConfiguration... encryptionConfigurations)
Replaces any existing configurations with the ones supplied.
|
JwtValidator.Builder |
withSignatures(java.util.Collection<? extends SignatureConfiguration> signatureConfigurations)
Replaces any existing configurations with the ones supplied.
|
JwtValidator.Builder |
withSignatures(SignatureConfiguration... signatureConfigurations)
Replaces any existing configurations with the ones supplied.
|
public JwtValidator.Builder withSignatures(SignatureConfiguration... signatureConfigurations)
signatureConfigurations
- The signature configurations to validate withpublic JwtValidator.Builder withSignatures(java.util.Collection<? extends SignatureConfiguration> signatureConfigurations)
signatureConfigurations
- The signature configurations to validate withpublic JwtValidator.Builder withEncryptions(EncryptionConfiguration... encryptionConfigurations)
encryptionConfigurations
- The encryption configurations to validate withpublic JwtValidator.Builder withEncryptions(java.util.Collection<? extends EncryptionConfiguration> encryptionConfigurations)
encryptionConfigurations
- The encryption configurations to validate withpublic JwtValidator.Builder withClaimValidators(JwtClaimsValidator... jwtClaimsValidators)
jwtClaimsValidators
- The claims validators to usepublic JwtValidator.Builder withClaimValidators(java.util.Collection<? extends JwtClaimsValidator> jwtClaimsValidators)
jwtClaimsValidators
- The claims validators to usepublic JwtValidator build()