Uses of Class
com.revetsec.jose.JwtValidator.Builder
Packages that use JwtValidator.Builder
Package
Description
JSON Object Signing and Encryption: JWS signature verification and bounded RSA signing, JSON Web Keys and key sets, and JWT claims
validation (RFC 7515, RFC 7517, RFC 7519).
-
Uses of JwtValidator.Builder in com.revetsec.jose
Methods in com.revetsec.jose that return JwtValidator.BuilderModifier and TypeMethodDescriptionJwtValidator.Builder.acceptAnyAudience(@Nullable Boolean acceptAnyAudience) Sets whether to accept a token for any audience, without checkingaud.JwtValidator.Builder.allowedAlgorithms(@Nullable Set<@NonNull JwsAlgorithm> allowedAlgorithms) Sets the algorithms a token may use, compared exactly with itsalg.JwtValidator.Builder.allowedTypes(@Nullable Set<@NonNull String> allowedTypes) Sets the allowed values of the header'styp.Sets the clock that supplies the current time for the time checks.Sets the allowance for clock differences between the issuer and this application: a token is expired fromexpplus the skew, and is not yet valid, or issued in the future, only beforenbfor afteriatby more than the skew.JwtValidator.Builder.expectedAudiences(@Nullable Set<@NonNull String> expectedAudiences) Sets the audiences a token may name: a token is accepted when at least one of itsaudvalues is one of these, compared exactly, and other audiences in it are allowed.JwtValidator.Builder.jwksSource(@Nullable JwksSource jwksSource) Sets where the verification keys come from.JwtValidator.Builder.maximumTokenLength(@Nullable Integer maximumTokenLength) Sets the longest token accepted, in characters; a longer one is rejected before it is examined.JwtValidator.Builder.observer(@Nullable JoseObserver observer) Sets the observer that receives this validator's events.JwtValidator.Builder.requiredClaims(@Nullable Set<@NonNull String> requiredClaims) Sets claims that must be present and not JSONnull, besides the ones always required:iss,exp, andaudunless any audience is accepted.JwtValidator.Builder.typeRequired(@Nullable Boolean typeRequired) Sets whether a token withouttypis rejected.static @NonNull JwtValidator.BuilderJwtValidator.withIssuer(@NonNull String issuer) Starts building a validator for tokens fromissuer.