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
raw 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
raw 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
raw 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.
raw docstring

private-keyclj

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

Private key constructor from file path.

Private key constructor from file path.
raw 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.
raw docstring

public-keyclj

(public-key path)

Public key constructor from file path.

Public key constructor from file path.
raw 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
raw 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.
raw docstring

str->private-keyclj

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

Private key constructor from string.

Private key constructor from string.
raw docstring

str->public-keyclj

(str->public-key keydata)

Public key constructor from string.

Public key constructor from string.
raw docstring

unwrapcljmultimethod

Wrap a key using some of key wrapping algorithms.

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

wrapcljmultimethod

Wrap a key using some of key wrapping algorithms.

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

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

× close