类 DefaultDaoAuthenticationProvider

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware, org.springframework.security.authentication.AuthenticationProvider

    public class DefaultDaoAuthenticationProvider
    extends org.springframework.security.authentication.dao.DaoAuthenticationProvider
    AuthenticationProvider默认实现
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected CoreUserService userService  
      • 从类继承的字段 org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider

        hideUserNotFoundExceptions, messages
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      protected void additionalAuthenticationChecks​(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)  
      org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)  
      • 从类继承的方法 org.springframework.security.authentication.dao.DaoAuthenticationProvider

        createSuccessAuthentication, doAfterPropertiesSet, getPasswordEncoder, getUserDetailsService, retrieveUser, setPasswordEncoder, setUserDetailsPasswordService, setUserDetailsService
      • 从类继承的方法 org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider

        afterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supports
    • 字段详细资料

    • 构造器详细资料

      • DefaultDaoAuthenticationProvider

        public DefaultDaoAuthenticationProvider()
    • 方法详细资料

      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
                                                                      throws org.springframework.security.core.AuthenticationException
        指定者:
        authenticate 在接口中 org.springframework.security.authentication.AuthenticationProvider
        覆盖:
        authenticate 在类中 org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
        抛出:
        org.springframework.security.core.AuthenticationException
      • 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.DaoAuthenticationProvider
        抛出:
        org.springframework.security.core.AuthenticationException