Package org.flasby.security
Class MyAuthProvider
- java.lang.Object
-
- org.flasby.security.MyAuthProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
@Component public class MyAuthProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MyAuthProvider.AuthHandler<T extends org.springframework.security.core.Authentication>
-
Constructor Summary
Constructors Constructor Description MyAuthProvider(UserRepository<ChristmasUser> users)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
checks the userId and password.boolean
supports(Class<?> authentication)
-
-
-
Constructor Detail
-
MyAuthProvider
public MyAuthProvider(@Autowired UserRepository<ChristmasUser> users)
-
-
Method Detail
-
supports
public boolean supports(Class<?> authentication)
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
checks the userId and password. In addition it will invoke the IP Block checks- Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
-