Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -104,6 +104,14 @@ public NimbusJwtDecoder(JWTProcessor<SecurityContext> jwtProcessor) {
this.jwtProcessor = jwtProcessor;
}

/**
* Returns the JWT Validator used
* @return the JWT Validator used
*/
public OAuth2TokenValidator<Jwt> getJwtValidator() {
return this.jwtValidator;
}

/**
* Use this {@link Jwt} Validator
* @param jwtValidator - the Jwt Validator to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ public NimbusReactiveJwtDecoder(Converter<JWT, Mono<JWTClaimsSet>> jwtProcessor)
this.jwtProcessor = jwtProcessor;
}

/**
* Returns the JWT Validator used
* @return the JWT Validator used
*/
public OAuth2TokenValidator<Jwt> getJwtValidator() {
return this.jwtValidator;
}

/**
* Use the provided {@link OAuth2TokenValidator} to validate incoming {@link Jwt}s.
* @param jwtValidator the {@link OAuth2TokenValidator} to use
Expand Down