Class OAuth2ResourceOwnerPasswordAuthenticationConverter
java.lang.Object
cn.herodotus.engine.oauth2.authentication.provider.AbstractAuthenticationConverter
cn.herodotus.engine.oauth2.authentication.provider.OAuth2ResourceOwnerPasswordAuthenticationConverter
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationConverter
public final class OAuth2ResourceOwnerPasswordAuthenticationConverter
extends AbstractAuthenticationConverter
Description: 自定义密码模式认证转换器
AuthenticationConverter 类似于以前的 AbstractTokenGranter
主要用途是从请求中获取参数,并拼装Token类
- Author:
- : gengwei.zheng
- Date:
- : 2022/2/22 17:03
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2ResourceOwnerPasswordAuthenticationConverter(HttpCryptoProcessor httpCryptoProcessor) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationconvert(jakarta.servlet.http.HttpServletRequest request) Methods inherited from class cn.herodotus.engine.oauth2.authentication.provider.AbstractAuthenticationConverter
decrypt, decrypt, getAdditionalParameters, getClientPrincipal, getRequestedScopes
-
Constructor Details
-
OAuth2ResourceOwnerPasswordAuthenticationConverter
-
-
Method Details
-
convert
@Nullable public org.springframework.security.core.Authentication convert(jakarta.servlet.http.HttpServletRequest request)
-