Class WeChatAuthenticationProvider
- java.lang.Object
-
- org.oxerr.spring.security.wechat.authentication.WeChatAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.MessageSourceAware,org.springframework.security.authentication.AuthenticationProvider
public class WeChatAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.support.MessageSourceAccessormessagesprivate WeChatUserDetailsServiceweChatUserDetailsService
-
Constructor Summary
Constructors Constructor Description WeChatAuthenticationProvider(WeChatUserDetailsService weChatUserDetailsService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)voidsetMessageSource(org.springframework.context.MessageSource messageSource)booleansupports(Class<?> authentication)
-
-
-
Field Detail
-
messages
protected org.springframework.context.support.MessageSourceAccessor messages
-
weChatUserDetailsService
private final WeChatUserDetailsService weChatUserDetailsService
-
-
Constructor Detail
-
WeChatAuthenticationProvider
public WeChatAuthenticationProvider(WeChatUserDetailsService weChatUserDetailsService)
-
-
Method Detail
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException- Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
public boolean supports(Class<?> authentication)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
- Specified by:
setMessageSourcein interfaceorg.springframework.context.MessageSourceAware
-
-