【问题标题】:Nimbus: Cannot find symbol: method getAllClaims in latest versionNimbus:找不到符号:最新版本中的方法 getAllClaims
【发布时间】:2017-05-26 21:57:06
【问题描述】:

我的程序的一部分需要旧版本的 Nimbus (2.21) 才能成功运行,还有一部分需要新版本(最好是 4.3)。

当我只尝试新版本时,我得到这个输出:

[ERROR] /src/main/java/com/service/impl/AuthenticationContextImpl.java:[120,64] cannot find symbol
[ERROR] symbol:   method getAllClaims()
[ERROR] location: class com.nimbusds.jwt.JWTClaimsSet

相关行是:

String contextJSON = ((JWTClaimsSet) auth.getCredentials()).getAllClaims().get("context").toString();

据推测,此功能已在较新版本的 Nimbus 中更新或重命名。我应该如何适应这个?

【问题讨论】:

    标签: java jwt nimbus


    【解决方案1】:
    猜你喜欢
    • 2020-10-05
    • 1970-01-01
    • 2015-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-31
    • 2019-05-31
    • 1970-01-01
    相关资源
    最近更新 更多