Add signing and private key support

The library now adds wrappers around the buddy library's sign function. This is
made possible by extracting any private keys from the json web key list.

Specs are added for the new private key functionality.

The resolve-key function is now private, and new functions resolve-public-key
and resolve-private-key has taken its place.

Signed-off-by: Snorre Magnus Davøen <>
1 job for master in 29 seconds (queued for 2 seconds)
Status Job ID Name Coverage
failed #51239


Name Stage Failure
test Test
	at no.nsd.clj_jwt_test$eval970.invokeStatic(clj_jwt_test.clj:1)
at no.nsd.clj_jwt_test$eval970.invoke(clj_jwt_test.clj:1)
at clojure.lang.Compiler.eval(
at clojure.lang.Compiler.eval(
at clojure.lang.Compiler.load(
... 45 more
Running after script...
$ cp -R $HOME/.m2 .
ERROR: Job failed: exit code 1