public class OAuth2AuthenticationProviderUtils extends Object
Description: Utility methods for the OAuth 2.0 AuthenticationProvider's.
| 限定符和类型 | 方法和说明 |
|---|---|
static org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken |
getAuthenticatedClientElseThrowInvalidClient(org.springframework.security.core.Authentication authentication) |
static <T extends org.springframework.security.oauth2.core.OAuth2Token> |
invalidate(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization,
T token) |
public static org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken getAuthenticatedClientElseThrowInvalidClient(org.springframework.security.core.Authentication authentication)
public static <T extends org.springframework.security.oauth2.core.OAuth2Token> org.springframework.security.oauth2.server.authorization.OAuth2Authorization invalidate(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization,
T token)
Copyright © 2023 Dromara. All rights reserved.