类 OAuth2AuthenticationProviderUtils

java.lang.Object
cn.herodotus.engine.oauth2.authentication.utils.OAuth2AuthenticationProviderUtils

public class OAuth2AuthenticationProviderUtils extends Object

Description: Utility methods for the OAuth 2.0 AuthenticationProvider's.

作者:
: gengwei.zheng
Date:
: 2022/3/31 15:01
  • 方法概要

    修饰符和类型
    方法
    说明
    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>
    org.springframework.security.oauth2.server.authorization.OAuth2Authorization
    invalidate(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization, T token)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • getAuthenticatedClientElseThrowInvalidClient

      public static org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken getAuthenticatedClientElseThrowInvalidClient(org.springframework.security.core.Authentication authentication)
    • invalidate

      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)