gpt4 book ai didi

java - Java 中的简单 OpenID

转载 作者:行者123 更新时间:2023-12-02 00:34:23 25 4
gpt4 key购买 nike

我是 OpenID 新手。是否可以在 Java 中针对 OpenID 执行类似的操作?

String username = "user";
String password = "pass";

OpenID openID = new OpenID(username, password);

然后我检索一些东西...回调,事件...之类的东西

void opedIDAuthenticatedSuccessfully(OpenIDEvent event) {
String id = event.getID;
String user = event.username;
...
}

那就太好了!

最佳答案

有一个用于 Java 的 OpenID 库:http://code.google.com/p/openid4java

This library allows you to OpenID-enable your Java webapp.

The following specifications are supported:

  • OpenID Authentication 2.0
  • OpenID Authentication 1.1 (in compatibility mode)
  • OpenID Attribute Exchange 1.0
  • OpenID Simple Registration 1.0 and 1.1, draft 1
  • OpenID Provider Authentication Policy Extension 1.0
  • OpenID Information Cards 1.0, draft 1

关于java - Java 中的简单 OpenID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8217558/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com