java类org.springframework.security.authentication.AuthenticationManager的实例源码

AuthServiceImpl.java 文件源码 项目:bf-editor 阅读 34 收藏 0 点赞 0 评论 0
@Autowired
public AuthServiceImpl(
        AuthenticationManager authenticationManager,
        UserDetailsService userDetailsService,
        JwtTokenUtil jwtTokenUtil,
        UsersRepository usersRepository) {
    this.authenticationManager = authenticationManager;
    this.userDetailsService = userDetailsService;
    this.jwtTokenUtil = jwtTokenUtil;
    this.usersRepository = usersRepository;
}
OAuth2ServerConfiguration.java 文件源码 项目:spring-boot-oauth2-demo 阅读 28 收藏 0 点赞 0 评论 0
public AuthorizationServerConfiguration(@Qualifier("authenticationManagerBean") AuthenticationManager authenticationManager,
                                        TokenStore tokenStore, DataSource dataSource) {

    this.authenticationManager = authenticationManager;
    this.tokenStore = tokenStore;
    this.dataSource = dataSource;
}
AuthServiceImpl.java 文件源码 项目:digag-server 阅读 33 收藏 0 点赞 0 评论 0
@Autowired
public AuthServiceImpl(
        AuthenticationManager authenticationManager,
        UserDetailsService userDetailsService,
        JwtTokenUtil jwtTokenUtil,
        UserRepository userRepository,
        RoleRepository roleRepository) {
    this.authenticationManager = authenticationManager;
    this.userDetailsService = userDetailsService;
    this.jwtTokenUtil = jwtTokenUtil;
    this.userRepository = userRepository;
    this.roleRepository = roleRepository;
}
OAuth2Configuration.java 文件源码 项目:simple-openid-provider 阅读 30 收藏 0 点赞 0 评论 0
public OAuth2Configuration(ResourceLoader resourceLoader, OpenIdProviderProperties properties,
        ObjectProvider<JdbcOperations> jdbcOperations, ObjectProvider<AuthenticationManager> authenticationManager,
        ObjectProvider<HazelcastInstance> hazelcastInstance) {
    this.resourceLoader = resourceLoader;
    this.properties = properties;
    this.jdbcOperations = jdbcOperations.getObject();
    this.authenticationManager = authenticationManager.getObject();
    this.hazelcastInstance = hazelcastInstance.getObject();
}
OAuth2AuthorizationServerConfig.java 文件源码 项目:theskeleton 阅读 28 收藏 0 点赞 0 评论 0
public OAuth2AuthorizationServerConfig(AccessTokenConverter accessTokenConverter, ApprovalStore approvalStore, AuthenticationManager authenticationManager, OAuth2ClientService clientService, TokenEnhancer tokenEnhancer, TokenStore tokenStore) {
    this.accessTokenConverter = accessTokenConverter;
    this.approvalStore = approvalStore;
    this.authenticationManager = authenticationManager;
    this.clientService = clientService;
    this.tokenEnhancer = tokenEnhancer;
    this.tokenStore = tokenStore;
}
PreauthFilter.java 文件源码 项目:ARCLib 阅读 29 收藏 0 点赞 0 评论 0
public PreauthFilter(AuthenticationManager authenticationManager, AuditLogger logger) {
    super();

    this.setAuthenticationManager(authenticationManager);

    this.setAuthenticationSuccessHandler((request, response, authentication) -> logger.logEvent(new LoginEvent(Instant.now(), extractUsername(request), true)));
    this.setAuthenticationFailureHandler((request, response, exception) -> logger.logEvent(new LoginEvent(Instant.now(), extractUsername(request), false)));
}
JWTLoginFilter.java 文件源码 项目:jwt-security-spring-boot-starter 阅读 35 收藏 0 点赞 0 评论 0
protected JWTLoginFilter(String defaultFilterProcessesUrl,
                         TokenProvider tokenProvider,
                         JwtSecurityProperties jwtSecurityProperties,
                         AuthenticationManager authenticationManager) {
  super(new AntPathRequestMatcher(defaultFilterProcessesUrl));
  this.tokenProvider = tokenProvider;
  this.jwtSecurityProperties = jwtSecurityProperties;
  setAuthenticationManager(authenticationManager);
}
OpenIdConfig.java 文件源码 项目:poppynotes 阅读 30 收藏 0 点赞 0 评论 0
@Bean(name="authenticationManagerBean")
public AuthenticationManager getAuthenticationManager(){
    return new AuthenticationManager() {
        @Override
        public Authentication authenticate(Authentication authentication) throws AuthenticationException {
            throw new UnsupportedOperationException("No authentication should be done with this AuthenticationManager");
        }
    };
}
SecurityHelper.java 文件源码 项目:DAFramework 阅读 31 收藏 0 点赞 0 评论 0
public static Authentication auth(AuthenticationManager authenticationManager, String userName, String password) {
    SecurityContext sc = SecurityContextHolder.getContext();
    UsernamePasswordAuthenticationToken upToken = new UsernamePasswordAuthenticationToken(userName, password);
    Authentication authentication = authenticationManager.authenticate(upToken);
    sc.setAuthentication(authentication);
    return sc.getAuthentication();
}
UaaWebSecurityConfiguration.java 文件源码 项目:xm-uaa 阅读 33 收藏 0 点赞 0 评论 0
@Override
@Bean
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
AuthServerOAuth2Config.java 文件源码 项目:oauth2-with-jdbc 阅读 33 收藏 0 点赞 0 评论 0
@Autowired
public AuthServerOAuth2Config(AuthenticationManager authenticationManager, AppConfig appConfig) {
    this.authenticationManager = authenticationManager;
    this.appConfig = appConfig;
}
UserJWTController.java 文件源码 项目:jhipster-microservices-example 阅读 33 收藏 0 点赞 0 评论 0
public UserJWTController(TokenProvider tokenProvider, AuthenticationManager authenticationManager) {
    this.tokenProvider = tokenProvider;
    this.authenticationManager = authenticationManager;
}
SecurityConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 30 收藏 0 点赞 0 评论 0
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
OAuth2AutoConfigurationTests.java 文件源码 项目:spring-security-oauth2-boot 阅读 34 收藏 0 点赞 0 评论 0
@Override
@Bean
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
OAuth2AutoConfigurationTests.java 文件源码 项目:spring-security-oauth2-boot 阅读 25 收藏 0 点赞 0 评论 0
protected CustomAuthorizationServer(AuthenticationManager authenticationManager) {
    this.authenticationManager = authenticationManager;
}
SecurityConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 38 收藏 0 点赞 0 评论 0
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
WebSecurityConfig.java 文件源码 项目:OpenLRW 阅读 28 收藏 0 点赞 0 评论 0
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
SecurityConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 28 收藏 0 点赞 0 评论 0
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
AppSecurityModelC.java 文件源码 项目:Spring-5.0-Cookbook 阅读 26 收藏 0 点赞 0 评论 0
@Override
protected AuthenticationManager authenticationManager() throws Exception {
 return new ProviderManager(Arrays.asList(appAdminProvider, appHRProvider ), appAuthenticationMgr);
}
SecurityConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 42 收藏 0 点赞 0 评论 0
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
AppSecurityModelB.java 文件源码 项目:Spring-5.0-Cookbook 阅读 26 收藏 0 点赞 0 评论 0
@Override
protected AuthenticationManager authenticationManager() throws Exception {
     return new ProviderManager(Arrays.asList(appAdminProvider, appHRProvider ), appAuthenticationMgr);
}
AppSecurityModelC.java 文件源码 项目:Spring-5.0-Cookbook 阅读 31 收藏 0 点赞 0 评论 0
@Override
protected AuthenticationManager authenticationManager() throws Exception {
 return new ProviderManager(Arrays.asList(appAdminProvider, appHRProvider ), appAuthenticationMgr);
}
JWTLoginFilter.java 文件源码 项目:spring-boot-jwts 阅读 34 收藏 0 点赞 0 评论 0
public JWTLoginFilter(String url, AuthenticationManager authManager) {
    super(new AntPathRequestMatcher(url));
    setAuthenticationManager(authManager);
}
SecurityConfig.java 文件源码 项目:spring-boot-oauth2-demo 阅读 33 收藏 0 点赞 0 评论 0
@Override
@Bean
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
WebSecurityConfig.java 文件源码 项目:angular-spring-starter 阅读 30 收藏 0 点赞 0 评论 0
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
  return super.authenticationManagerBean();
}
SecurityConfig.java 文件源码 项目:Spring-Security-Third-Edition 阅读 28 收藏 0 点赞 0 评论 0
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
AuthenticationService.java 文件源码 项目:qonduit 阅读 30 收藏 0 点赞 0 评论 0
public static AuthenticationManager getAuthenticationManager() {
    return authManager;
}
AuthSecurityConfiguration.java 文件源码 项目:springuni-particles 阅读 27 收藏 0 点赞 0 评论 0
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
  return super.authenticationManagerBean();
}
ResourceServerConfiguration.java 文件源码 项目:spring-authorization-server 阅读 33 收藏 0 点赞 0 评论 0
@Autowired
public ResourceServerConfiguration(AuthenticationManager authenticationManager, TokenStore tokenStore) {
    this.authenticationManager = authenticationManager;
    this.tokenStore = tokenStore;
}
WebSecurityConfiguration.java 文件源码 项目:spring-authorization-server 阅读 32 收藏 0 点赞 0 评论 0
@Autowired
public WebSecurityConfiguration(UserDetailsService userDetailsService, AuthenticationManager authenticationManager) {
    this.userDetailsService = userDetailsService;
    this.authenticationManager = authenticationManager;
}


问题


面经


文章

微信
公众号

扫码关注公众号