mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
Remove deprecations in AbstractOAuth2AuthorizationGrantRequest
Closes gh-11517
This commit is contained in:
parent
be58e2ac49
commit
61b034bf69
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2021 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -38,20 +38,6 @@ public abstract class AbstractOAuth2AuthorizationGrantRequest {
|
|||||||
|
|
||||||
private final ClientRegistration clientRegistration;
|
private final ClientRegistration clientRegistration;
|
||||||
|
|
||||||
/**
|
|
||||||
* Sub-class constructor.
|
|
||||||
* @param authorizationGrantType the authorization grant type
|
|
||||||
* @deprecated Use
|
|
||||||
* {@link #AbstractOAuth2AuthorizationGrantRequest(AuthorizationGrantType, ClientRegistration)}
|
|
||||||
* instead
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
protected AbstractOAuth2AuthorizationGrantRequest(AuthorizationGrantType authorizationGrantType) {
|
|
||||||
Assert.notNull(authorizationGrantType, "authorizationGrantType cannot be null");
|
|
||||||
this.authorizationGrantType = authorizationGrantType;
|
|
||||||
this.clientRegistration = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sub-class constructor.
|
* Sub-class constructor.
|
||||||
* @param authorizationGrantType the authorization grant type
|
* @param authorizationGrantType the authorization grant type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user