None of the following functions can be called with the arguments supplied. #977
Unanswered
ItSNeverLate
asked this question in
Q&A
Replies: 1 comment
-
Hi @ItSNeverLate ! ...
.signWith(privateKey, SignatureAlgorithm.RS512)
.compact() should be: ...
.signWith(privateKey, Jwts.SIG.RS512) // <-- Jwts.SIG.RS512
.compact() The I think that's the issue - let us know! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I could not use this fun signature! Any idea?
.signWith(privateKey, Jwts.SIG.RS512)
` val kf = KeyFactory.getInstance("RSA")
val pkcs8EncodedKeySpec = PKCS8EncodedKeySpec(accessKeyBase64.decodeBase64Bytes())
val privateKey: Key = kf.generatePrivate(pkcs8EncodedKeySpec)
val calendar = Calendar.getInstance()
other signatures work, but:
.signWith(privateKey, SignatureAlgorithm.RS512) --> is deprecated
.signWith(privateKey) --> uses RS256 while I need RS512
None of the following functions can be called with the arguments supplied.
signWith(TypeVariable(K)!, SecureDigestAlgorithm<in TypeVariable(K)!, *>!) where K = TypeVariable(K) for fun <K : Key!> signWith(key: K!, alg: SecureDigestAlgorithm<in K!, *>!): JwtBuilder! defined in io. jsonwebtoken. JwtBuilder
signWith(SignatureAlgorithm!, Key!) defined in io. jsonwebtoken. JwtBuilder
signWith(SignatureAlgorithm!, ByteArray!) defined in io. jsonwebtoken. JwtBuilder
signWith(SignatureAlgorithm!, String!) defined in io. jsonwebtoken. JwtBuilder
signWith(Key!, SignatureAlgorithm!) defined in io. jsonwebtoken. JwtBuilder
Beta Was this translation helpful? Give feedback.
All reactions