Liking cljdoc? Tell your friends :D

buddy.core.keys

PEM reader, JWK file reading writing and JCA conversions

NOTE: Supports only public/private key reading - no symmetric keys support available/

References:

PEM reader, JWK file reading writing and JCA conversions

NOTE: Supports only public/private key reading - no symmetric keys support available/

References:

* https://tools.ietf.org/html/rfc7515
* https://tools.ietf.org/html/rfc7517
* https://tools.ietf.org/html/rfc7638
* https://tools.ietf.org/html/rfc8037
* https://www.iana.org/assignments/jose/jose.xhtml
raw docstring

jwkclj

(jwk private public)

Converts JCA private and public key to clojure map representing JWK object

Converts JCA private and public key to clojure map representing JWK object
sourceraw docstring

jwk->private-keyclj

(jwk->private-key jwk)

Converts clojure map representing JWK object to java.security.PrivateKey

Converts clojure map representing JWK object to java.security.PrivateKey
sourceraw docstring

jwk->public-keyclj

(jwk->public-key jwk)

Converts clojure map representing JWK object to java.security.PublicKey

Converts clojure map representing JWK object to java.security.PublicKey
sourceraw docstring

jwk-thumbprintclj

(jwk-thumbprint jwk)

Calculate the thumbprint of the jwk key according to the RFC7638.

Calculate the thumbprint of the jwk key according to the RFC7638.
sourceraw docstring

private-keyclj

(private-key path)
(private-key path passphrase)

Private key constructor from file path.

Private key constructor from file path.
sourceraw docstring

private-key?clj

(private-key? k)

Return true if key k is a private key.

Return true if key `k` is a private key.
sourceraw docstring

public-keyclj

(public-key path)

Public key constructor from file path.

Public key constructor from file path.
sourceraw docstring

public-key->jwkclj

(public-key->jwk public)

Converts JCA public key to clojure map representing JWK object

Converts JCA public key to clojure map representing JWK object
sourceraw docstring

public-key?clj

(public-key? k)

Return true if key k is a public key.

Return true if key `k` is a public key.
sourceraw docstring

str->private-keyclj

(str->private-key keydata)
(str->private-key keydata passphrase)

Private key constructor from string.

Private key constructor from string.
sourceraw docstring

str->public-keyclj

(str->public-key keydata)

Public key constructor from string.

Public key constructor from string.
sourceraw docstring

unwrapcljmultimethod

Wrap a key using some of key wrapping algorithms.

Wrap a key using some of key wrapping algorithms.
sourceraw docstring

wrapcljmultimethod

Wrap a key using some of key wrapping algorithms.

Wrap a key using some of key wrapping algorithms.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close