Class OTPAuthenticationServiceImpl

    • Field Detail

      • store

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

      • OTPAuthenticationServiceImpl

        public OTPAuthenticationServiceImpl()
    • Method Detail

      • 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)