Java 类org.springframework.security.authentication.AuthenticationManager 实例源码

项目:bf-editor    文件:AuthServiceImpl.java   
@Autowired
public AuthServiceImpl(
        AuthenticationManager authenticationManager,
        UserDetailsService userDetailsService,
        JwtTokenUtil jwtTokenUtil,
        UsersRepository usersRepository) {
    this.authenticationManager = authenticationManager;
    this.userDetailsService = userDetailsService;
    this.jwtTokenUtil = jwtTokenUtil;
    this.usersRepository = usersRepository;
}
项目:spring-boot-oauth2-demo    文件:OAuth2ServerConfiguration.java   
public AuthorizationServerConfiguration(@Qualifier("authenticationManagerBean") AuthenticationManager authenticationManager,
                                        TokenStore tokenStore, DataSource dataSource) {

    this.authenticationManager = authenticationManager;
    this.tokenStore = tokenStore;
    this.dataSource = dataSource;
}
项目:digag-server    文件:AuthServiceImpl.java   
@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;
}
项目:simple-openid-provider    文件:OAuth2Configuration.java   
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();
}
项目:theskeleton    文件:OAuth2AuthorizationServerConfig.java   
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;
}
项目:ARCLib    文件:PreauthFilter.java   
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)));
}
项目:jwt-security-spring-boot-starter    文件:JWTLoginFilter.java   
protected JWTLoginFilter(String defaultFilterProcessesUrl,
                         TokenProvider tokenProvider,
                         JwtSecurityProperties jwtSecurityProperties,
                         AuthenticationManager authenticationManager) {
  super(new AntPathRequestMatcher(defaultFilterProcessesUrl));
  this.tokenProvider = tokenProvider;
  this.jwtSecurityProperties = jwtSecurityProperties;
  setAuthenticationManager(authenticationManager);
}
项目:poppynotes    文件:OpenIdConfig.java   
@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");
        }
    };
}
项目:DAFramework    文件:SecurityHelper.java   
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();
}
项目:xm-uaa    文件:UaaWebSecurityConfiguration.java   
@Override
@Bean
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
项目:oauth2-with-jdbc    文件:AuthServerOAuth2Config.java   
@Autowired
public AuthServerOAuth2Config(AuthenticationManager authenticationManager, AppConfig appConfig) {
    this.authenticationManager = authenticationManager;
    this.appConfig = appConfig;
}
项目:jhipster-microservices-example    文件:UserJWTController.java   
public UserJWTController(TokenProvider tokenProvider, AuthenticationManager authenticationManager) {
    this.tokenProvider = tokenProvider;
    this.authenticationManager = authenticationManager;
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
项目:spring-security-oauth2-boot    文件:OAuth2AutoConfigurationTests.java   
@Override
@Bean
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
项目:spring-security-oauth2-boot    文件:OAuth2AutoConfigurationTests.java   
protected CustomAuthorizationServer(AuthenticationManager authenticationManager) {
    this.authenticationManager = authenticationManager;
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
项目:OpenLRW    文件:WebSecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
项目:Spring-5.0-Cookbook    文件:AppSecurityModelC.java   
@Override
protected AuthenticationManager authenticationManager() throws Exception {
 return new ProviderManager(Arrays.asList(appAdminProvider, appHRProvider ), appAuthenticationMgr);
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
项目:Spring-5.0-Cookbook    文件:AppSecurityModelB.java   
@Override
protected AuthenticationManager authenticationManager() throws Exception {
     return new ProviderManager(Arrays.asList(appAdminProvider, appHRProvider ), appAuthenticationMgr);
}
项目:Spring-5.0-Cookbook    文件:AppSecurityModelC.java   
@Override
protected AuthenticationManager authenticationManager() throws Exception {
 return new ProviderManager(Arrays.asList(appAdminProvider, appHRProvider ), appAuthenticationMgr);
}
项目:spring-boot-jwts    文件:JWTLoginFilter.java   
public JWTLoginFilter(String url, AuthenticationManager authManager) {
    super(new AntPathRequestMatcher(url));
    setAuthenticationManager(authManager);
}
项目:spring-boot-oauth2-demo    文件:SecurityConfig.java   
@Override
@Bean
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
项目:angular-spring-starter    文件:WebSecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
  return super.authenticationManagerBean();
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
项目:qonduit    文件:AuthenticationService.java   
public static AuthenticationManager getAuthenticationManager() {
    return authManager;
}
项目:springuni-particles    文件:AuthSecurityConfiguration.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
  return super.authenticationManagerBean();
}
项目:spring-authorization-server    文件:ResourceServerConfiguration.java   
@Autowired
public ResourceServerConfiguration(AuthenticationManager authenticationManager, TokenStore tokenStore) {
    this.authenticationManager = authenticationManager;
    this.tokenStore = tokenStore;
}
项目:spring-authorization-server    文件:WebSecurityConfiguration.java   
@Autowired
public WebSecurityConfiguration(UserDetailsService userDetailsService, AuthenticationManager authenticationManager) {
    this.userDetailsService = userDetailsService;
    this.authenticationManager = authenticationManager;
}
项目:spring-authorization-server    文件:AuthorizationServerConfiguration.java   
@Autowired
public AuthorizationServerConfiguration(AuthenticationManager authenticationManager, JwtAccessTokenConverter jwtAccessTokenConverter) {
    this.authenticationManager = authenticationManager;
    this.jwtAccessTokenConverter = jwtAccessTokenConverter;
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
项目:happy-news    文件:AuthorizationServerConfig.java   
@Autowired
public AuthorizationServerConfig(@Qualifier("mongoTokenStore") final TokenStore tokenStore,
                                 final AuthenticationManager authenticationManager) {
    this.tokenStore = tokenStore;
    this.authenticationManager = authenticationManager;
}
项目:jersey-jwt-springsecurity    文件:JwtAuthenticationTokenFilter.java   
public JwtAuthenticationTokenFilter(AuthenticationManager authenticationManager,
                                    AuthenticationEntryPoint authenticationEntryPoint) {
    this.authenticationManager = authenticationManager;
    this.authenticationEntryPoint = authenticationEntryPoint;
}
项目:jersey-jwt-springsecurity    文件:WebSecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
项目:Diber-backend    文件:SecurityConfiguration.java   
@Override
@Bean
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
项目:microservices-tcc-alfa    文件:WebSecurityConfiguration.java   
@Override
@Bean
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
项目:theskeleton    文件:WebSecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}
项目:Spring-Security-Third-Edition    文件:SecurityConfig.java   
@Bean
@Override
public AuthenticationManager authenticationManagerBean()
        throws Exception {
    return super.authenticationManagerBean();
}