我找不到代码示例的 Maven 依赖项:Keys.hmacShaKeyFor(...);

I can't find Maven dependency for the code sample : Keys.hmacShaKeyFor(...);

我想获取此代码示例的 Maven 依赖关系:

Keys.hmacShaKeyFor(signingKeySecret.getBytes());

通常我应该在这个依赖项中,但它似乎不存在:

<dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt</artifactId>
            <version>0.9.1</version>
</dependency>

有人知道它在哪里吗?

谢谢

它是 jjwt-impl

的一部分
<dependency>
    <groupId>io.jsonwebtoken</groupId>
    <artifactId>jjwt-impl</artifactId>
    <version>0.11.2</version>
</dependency>