Class GenerateOTPController
- java.lang.Object
-
- org.oxerr.spring.security.otp.samples.helloworld.web.GenerateOTPController
-
@Controller @RolesAllowed("ROLE_USER") public class GenerateOTPController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private OTPAuthenticationServiceImpl
otpAuthenticationServiceImpl
-
Constructor Summary
Constructors Constructor Description GenerateOTPController(OTPAuthenticationServiceImpl otpAuthenticationServiceImpl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.ModelAndView
getOtp(org.springframework.security.core.Authentication authentication)
-
-
-
Field Detail
-
otpAuthenticationServiceImpl
private final OTPAuthenticationServiceImpl otpAuthenticationServiceImpl
-
-
Constructor Detail
-
GenerateOTPController
@Autowired public GenerateOTPController(OTPAuthenticationServiceImpl otpAuthenticationServiceImpl)
-
-
Method Detail
-
getOtp
@RequestMapping(method=GET, path="/generate-otp") public org.springframework.web.servlet.ModelAndView getOtp(org.springframework.security.core.Authentication authentication) throws IOException
- Throws:
IOException
-
-