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
Fields Modifier and Type Field Description private OTPAuthenticationService
otpAuthenticationService
-
Constructor Summary
Constructors Constructor Description OTPAuthenticationProvider(OTPAuthenticationService otpAuthenticationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
boolean
supports(Class<?> authentication)
-
-
-
Field Detail
-
otpAuthenticationService
private final OTPAuthenticationService otpAuthenticationService
-
-
Constructor Detail
-
OTPAuthenticationProvider
public OTPAuthenticationProvider(OTPAuthenticationService otpAuthenticationService)
-
-
Method Detail
-
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
public boolean supports(Class<?> authentication)
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-