Warm tip: This article is reproduced from serverfault.com, please click

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

发布于 2020-11-29 18:15:54

I want to get the Maven depedency for this sample of code :

Keys.hmacShaKeyFor(signingKeySecret.getBytes());

Normally i should be in this depedency, but it seems to be absent :

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

Anyone knows where is it located ?

Thank you

Questioner
jozinho22
Viewed
0
Dirk Deyne 2020-11-30 02:41:50

it is part of jjwt-impl

<dependency>
    <groupId>io.jsonwebtoken</groupId>
    <artifactId>jjwt-impl</artifactId>
    <version>0.11.2</version>
</dependency>