Class OTPAuthenticationServiceImpl

java.lang.Object
org.oxerr.spring.security.otp.samples.helloworld.service.impl.OTPAuthenticationServiceImpl
All Implemented Interfaces:
OTPAuthenticationService

public class OTPAuthenticationServiceImpl extends Object implements OTPAuthenticationService
  • Field Details

    • store

      private final Map<String,org.springframework.security.core.Authentication> store
  • Constructor Details

    • OTPAuthenticationServiceImpl

      public OTPAuthenticationServiceImpl()
  • Method Details

    • loadAuthenticationByOneTimePassword

      public org.springframework.security.core.Authentication loadAuthenticationByOneTimePassword(String oneTimePassword) throws org.springframework.security.core.AuthenticationException
      Specified by:
      loadAuthenticationByOneTimePassword in interface OTPAuthenticationService
      Throws:
      org.springframework.security.core.AuthenticationException
    • generateOneTimePassword

      public String generateOneTimePassword(org.springframework.security.core.Authentication authentication)