|
@@ -72,7 +72,7 @@ import static org.springframework.security.oauth2.server.authorization.authentic
|
|
|
* @see <a target="_blank" href="https://tools.ietf.org/html/rfc6749#section-1.5">Section 1.5 Refresh Token Grant</a>
|
|
|
* @see <a target="_blank" href="https://tools.ietf.org/html/rfc6749#section-6">Section 6 Refreshing an Access Token</a>
|
|
|
*/
|
|
|
-public class OAuth2RefreshTokenAuthenticationProvider implements AuthenticationProvider {
|
|
|
+public final class OAuth2RefreshTokenAuthenticationProvider implements AuthenticationProvider {
|
|
|
private static final OAuth2TokenType ID_TOKEN_TOKEN_TYPE = new OAuth2TokenType(OidcParameterNames.ID_TOKEN);
|
|
|
private static final StringKeyGenerator TOKEN_GENERATOR = new Base64StringKeyGenerator(Base64.getUrlEncoder().withoutPadding(), 96);
|
|
|
private final OAuth2AuthorizationService authorizationService;
|
|
@@ -94,7 +94,7 @@ public class OAuth2RefreshTokenAuthenticationProvider implements AuthenticationP
|
|
|
this.jwtEncoder = jwtEncoder;
|
|
|
}
|
|
|
|
|
|
- public final void setJwtCustomizer(OAuth2TokenCustomizer<JwtEncodingContext> jwtCustomizer) {
|
|
|
+ public void setJwtCustomizer(OAuth2TokenCustomizer<JwtEncodingContext> jwtCustomizer) {
|
|
|
Assert.notNull(jwtCustomizer, "jwtCustomizer cannot be null");
|
|
|
this.jwtCustomizer = jwtCustomizer;
|
|
|
}
|