Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add annotation @Override #1878

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
Expand Up @@ -100,6 +100,7 @@ public Builder accessTokenResponse(OAuth2AccessTokenResponse.Builder accessToken
* Builds a new {@link OAuth2AccessTokenAuthenticationContext}.
* @return the {@link OAuth2AccessTokenAuthenticationContext}
*/
@Override
public OAuth2AccessTokenAuthenticationContext build() {
Assert.notNull(get(OAuth2AccessTokenResponse.Builder.class), "accessTokenResponse cannot be null");
return new OAuth2AccessTokenAuthenticationContext(getContext());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public Builder authorizationConsent(OAuth2AuthorizationConsent authorizationCons
* Builds a new {@link OAuth2AuthorizationCodeRequestAuthenticationContext}.
* @return the {@link OAuth2AuthorizationCodeRequestAuthenticationContext}
*/
@Override
public OAuth2AuthorizationCodeRequestAuthenticationContext build() {
Assert.notNull(get(RegisteredClient.class), "registeredClient cannot be null");
return new OAuth2AuthorizationCodeRequestAuthenticationContext(getContext());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public Builder authorizationRequest(OAuth2AuthorizationRequest authorizationRequ
* Builds a new {@link OAuth2AuthorizationConsentAuthenticationContext}.
* @return the {@link OAuth2AuthorizationConsentAuthenticationContext}
*/
@Override
public OAuth2AuthorizationConsentAuthenticationContext build() {
Assert.notNull(get(OAuth2AuthorizationConsent.Builder.class), "authorizationConsentBuilder cannot be null");
Assert.notNull(get(RegisteredClient.class), "registeredClient cannot be null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public Builder registeredClient(RegisteredClient registeredClient) {
* Builds a new {@link OAuth2ClientAuthenticationContext}.
* @return the {@link OAuth2ClientAuthenticationContext}
*/
@Override
public OAuth2ClientAuthenticationContext build() {
Assert.notNull(get(RegisteredClient.class), "registeredClient cannot be null");
return new OAuth2ClientAuthenticationContext(getContext());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public Builder registeredClient(RegisteredClient registeredClient) {
* Builds a new {@link OAuth2ClientCredentialsAuthenticationContext}.
* @return the {@link OAuth2ClientCredentialsAuthenticationContext}
*/
@Override
public OAuth2ClientCredentialsAuthenticationContext build() {
Assert.notNull(get(RegisteredClient.class), "registeredClient cannot be null");
return new OAuth2ClientCredentialsAuthenticationContext(getContext());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public Builder authorization(OAuth2Authorization authorization) {
* Builds a new {@link OidcUserInfoAuthenticationContext}.
* @return the {@link OidcUserInfoAuthenticationContext}
*/
@Override
public OidcUserInfoAuthenticationContext build() {
Assert.notNull(get(OAuth2AccessToken.class), "accessToken cannot be null");
Assert.notNull(get(OAuth2Authorization.class), "authorization cannot be null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ private Builder() {
* Builds a new {@link DefaultOAuth2TokenContext}.
* @return the {@link DefaultOAuth2TokenContext}
*/
@Override
public DefaultOAuth2TokenContext build() {
return new DefaultOAuth2TokenContext(getContext());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ private Builder(JwsHeader.Builder jwsHeaderBuilder, JwtClaimsSet.Builder claimsB
* Builds a new {@link JwtEncodingContext}.
* @return the {@link JwtEncodingContext}
*/
@Override
public JwtEncodingContext build() {
return new JwtEncodingContext(getContext());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ private Builder(OAuth2TokenClaimsSet.Builder claimsBuilder) {
* Builds a new {@link OAuth2TokenClaimsContext}.
* @return the {@link OAuth2TokenClaimsContext}
*/
@Override
public OAuth2TokenClaimsContext build() {
return new OAuth2TokenClaimsContext(getContext());
}
Expand Down