类 DefaultAuthenticationProvider

java.lang.Object
org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
com.iplatform.security.DefaultAuthenticationProvider
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware, org.springframework.security.authentication.AuthenticationProvider

public class DefaultAuthenticationProvider extends org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
自定义认证提供者,由平台自己决定如何对比密码验证,如果不定制则spring会自动比较密码。
作者:
时克英
  • 字段概要

    从类继承的字段 org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider

    hideUserNotFoundExceptions, logger, messages
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected void
    additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
     
    protected org.springframework.security.core.userdetails.UserDetails
    retrieveUser(String username, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
     
    void
    setAllowPcUserAccessApp(boolean allowPcUserAccessApp)
    设置是否允许'后台PC用户'访问登录手机APP
    void
    setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
     

    从类继承的方法 org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider

    afterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supports

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • DefaultAuthenticationProvider

      public DefaultAuthenticationProvider()
  • 方法详细资料

    • additionalAuthenticationChecks

      protected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
      指定者:
      additionalAuthenticationChecks 在类中 org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
      抛出:
      org.springframework.security.core.AuthenticationException
    • retrieveUser

      protected org.springframework.security.core.userdetails.UserDetails retrieveUser(String username, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
      指定者:
      retrieveUser 在类中 org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
      抛出:
      org.springframework.security.core.AuthenticationException
    • setUserDetailsService

      public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
    • setAllowPcUserAccessApp

      public void setAllowPcUserAccessApp(boolean allowPcUserAccessApp)
      设置是否允许'后台PC用户'访问登录手机APP
      参数:
      allowPcUserAccessApp -