用于谷歌身份验证器的 Java API [英] java API for google Authenticator

查看:172
本文介绍了用于谷歌身份验证器的 Java API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Google Authenticator 添加两因素身份验证,并且想知道 google 是否提供了 java api.我试图寻找它,但没有找到.如果有的话,任何人都可以指出我的java api.如果不是,我该如何在基于 Web 的 Java 应用程序中使用 Google 身份验证器.我正在为我现有的应用程序使用 Spring 框架

I wanna add two factor authentication using Google Authenticator and was wondering if google provides with java api's. I tried searching for it but din't find any. Can anyone point me to the java api if there are any. If not how can i go about using Google Authenticator in my web based java application. I am using Spring framework for my existing application

推荐答案

实际上,Google Authenticator 与 Google 服务无关.您需要寻找的是TOTP.再次使用 TOTP 和 rfc6238 作为关键字进行研究,您会发现很多 资源.

In fact, Google Authenticator has nothing to do with Google services. What you need to look for is TOTP. Research again using TOTP and rfc6238 as keywords and you will find lots of resources.

这篇关于用于谷歌身份验证器的 Java API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆