1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package com.hack23.cia.service.impl;
20
21 import org.springframework.security.authentication.AuthenticationProvider;
22 import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
23 import org.springframework.security.core.Authentication;
24 import org.springframework.security.core.AuthenticationException;
25 import org.springframework.stereotype.Component;
26
27
28
29
30 @Component
31 public final class SecurityAuthenticationProvider implements AuthenticationProvider {
32
33 @Override
34 public Authentication authenticate(final Authentication authentication) throws AuthenticationException {
35 return null;
36 }
37
38 @Override
39 public boolean supports(final Class<?> authentication) {
40 return authentication.equals(UsernamePasswordAuthenticationToken.class);
41 }
42
43 }