Liking cljdoc? Tell your friends :D

jose.jwt


claimsclj

(claims compact)

Returns unverified compact JWT claims.

Registered claims are keyword keys. Custom claims keep their string keys. :exp, :nbf, and :iat return java.time.Instant values. :aud returns a vector.

Returns unverified compact JWT claims.

Registered claims are keyword keys. Custom claims keep their string keys.
:exp, :nbf, and :iat return java.time.Instant values. :aud returns a vector.
sourceraw docstring

decryptclj

(decrypt key compact)
(decrypt key compact opts)

Decrypts a compact encrypted JWT and returns validated claims.

Decrypts a compact encrypted JWT and returns validated claims.
sourceraw docstring

decrypt-then-verifyclj

(decrypt-then-verify decrypt-key verify-key compact)
(decrypt-then-verify decrypt-key verify-key compact opts)

Decrypts a nested JWE, then verifies the inner signed JWT.

Decrypts a nested JWE, then verifies the inner signed JWT.
sourceraw docstring

encryptclj

(encrypt key claims)
(encrypt key claims opts)

Encrypts a JWT claims map and returns a compact JWE string.

Encrypts a JWT claims map and returns a compact JWE string.
sourceraw docstring

signclj

(sign key claims)
(sign key claims opts)

Signs a JWT claims map and returns a compact JWS string.

Signs a JWT claims map and returns a compact JWS string.
sourceraw docstring

sign-then-encryptclj

(sign-then-encrypt sign-key encrypt-key claims opts)

Signs claims as a compact JWT, then encrypts the signed JWT as a nested JWE.

Signs claims as a compact JWT, then encrypts the signed JWT as a nested JWE.
sourceraw docstring

verifyclj

(verify key compact)
(verify key compact opts)

Verifies a compact signed JWT and returns claims.

Registered claims are keyword keys. Custom claims keep their string keys. :exp, :nbf, and :iat return java.time.Instant values. :aud returns a vector.

Verifies a compact signed JWT and returns claims.

Registered claims are keyword keys. Custom claims keep their string keys.
:exp, :nbf, and :iat return java.time.Instant values. :aud returns a vector.
sourceraw docstring

verify-with-jwksclj

(verify-with-jwks source compact)
(verify-with-jwks source compact opts)

Selects a verification key from a JWKS source, then verifies a compact JWT.

Selects a verification key from a JWKS source, then verifies a compact JWT.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close