Introducing JPaseto: Security Tokens For Java

Introducing JPaseto: Security Tokens For Java

JPaseto is a PASETO security token library for Java, learn more in this post.

Hi Brian,

I am facing issues while generating Pasetos token and

Pasetos.V2.LOCAL.builder()
.setSharedSecret(secretKey)
.setIssuedAt(now)
.setExpiration(now.plus(2, ChronoUnit.HOURS))
.setSubject(userPrincipal.getUsername())
.setKeyId(UUID.randomUUID().toString())
.setAudience(“bootlabs.com”)
.setIssuer(“dev.com”)
.claim(“aut”, authorities)
.compact();
throws-

Error: Failed to calculate BLAKE2b digest

Using - spring boot version - 3.0.2

Don’t find a clear reason behind this error.