Skip to content

Commit a740e81

Browse files
committed
Polish OAuth2TokenRevocationAuthenticationToken
1 parent c781593 commit a740e81

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2TokenRevocationAuthenticationToken.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 the original author or authors.
2+
* Copyright 2020-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,15 +15,15 @@
1515
*/
1616
package org.springframework.security.oauth2.server.authorization.authentication;
1717

18+
import java.util.Collections;
19+
1820
import org.springframework.lang.Nullable;
1921
import org.springframework.security.authentication.AbstractAuthenticationToken;
2022
import org.springframework.security.core.Authentication;
21-
import org.springframework.security.oauth2.core.AbstractOAuth2Token;
23+
import org.springframework.security.oauth2.core.OAuth2Token;
2224
import org.springframework.security.oauth2.core.Version;
2325
import org.springframework.util.Assert;
2426

25-
import java.util.Collections;
26-
2727
/**
2828
* An {@link Authentication} implementation used for OAuth 2.0 Token Revocation.
2929
*
@@ -62,7 +62,7 @@ public OAuth2TokenRevocationAuthenticationToken(String token,
6262
* @param revokedToken the revoked token
6363
* @param clientPrincipal the authenticated client principal
6464
*/
65-
public OAuth2TokenRevocationAuthenticationToken(AbstractOAuth2Token revokedToken,
65+
public OAuth2TokenRevocationAuthenticationToken(OAuth2Token revokedToken,
6666
Authentication clientPrincipal) {
6767
super(Collections.emptyList());
6868
Assert.notNull(revokedToken, "revokedToken cannot be null");

0 commit comments

Comments
 (0)