Class OTPAuthenticationProvider
java.lang.Object
org.oxerr.spring.security.otp.authentication.OTPAuthenticationProvider
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,org.springframework.security.authentication.AuthenticationProvider
public class OTPAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider, org.springframework.beans.factory.InitializingBean
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOTPAuthenticationProvider
(OTPAuthenticationService otpAuthenticationService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) boolean
-
Field Details
-
otpAuthenticationService
-
-
Constructor Details
-
OTPAuthenticationProvider
-
-
Method Details
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-