Liking cljdoc? Tell your friends :D

co.gaiwan.oak.util.jose

A data-driven wrapper around nimbus-jose-jwt for Clojure.

Works with string-string maps.

A data-driven wrapper around nimbus-jose-jwt for Clojure.

Works with string-string maps.
raw docstring

build-jwtclj

(build-jwt jwk-map claims-map)

Creates and signs a JWT string. Takes a JWK (as a Clojure map) and a map of claims.

Creates and signs a JWT string.
Takes a JWK (as a Clojure map) and a map of claims.
raw docstring

claims->mapclj

(claims->map claims)

Converts a JWTClaimsSet object into a Clojure map of claims.

Converts a JWTClaimsSet object into a Clojure map of claims.
raw docstring

jwk->mapclj

(jwk->map jwk)

Converts a nimbus JWK object into a Clojure map.

Converts a nimbus JWK object into a Clojure map.
raw docstring

map->claimsclj

(map->claims claims-map)

Converts a Clojure map of claims into a JWTClaimsSet object.

Converts a Clojure map of claims into a JWTClaimsSet object.
raw docstring

map->jwkclj

(map->jwk jwk-map)

Converts a Clojure map into a nimbus JWK object.

Converts a Clojure map into a nimbus JWK object.
raw docstring

new-jwkcljmultimethod

Generates a new JWK (JSON Web Key) as a Clojure map. Dispatches on the "kty" (Key Type) value in the input spec map.

Generates a new JWK (JSON Web Key) as a Clojure map.
Dispatches on the "kty" (Key Type) value in the input spec map.
raw docstring

parse-headerclj

(parse-header jwt-string)

Parses a JWT string and returns its header as a Clojure map.

Parses a JWT string and returns its header as a Clojure map.
raw docstring

parse-verify-jwtclj

(parse-verify-jwt public-jwk-map jwt-string)

Parses and verifies a JWT string using the provided public JWK. Returns the claims map if verification succeeds, otherwise throws an exception.

Parses and verifies a JWT string using the provided public JWK.
Returns the claims map if verification succeeds, otherwise throws an exception.
raw docstring

public-partsclj

(public-parts jwk-map)

Given a full JWK map including private key info, return only the public key parts.

Given a full JWK map including private key info, return only the public key
parts.
raw 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