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
(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
(jwk->private-key jwk)
Converts clojure map representing JWK object to java.security.PrivateKey
Converts clojure map representing JWK object to java.security.PrivateKey
(jwk->public-key jwk)
Converts clojure map representing JWK object to java.security.PublicKey
Converts clojure map representing JWK object to java.security.PublicKey
(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.
(private-key path)
(private-key path passphrase)
Private key constructor from file path.
Private key constructor from file path.
(private-key? k)
Return true if key k
is a private key.
Return true if key `k` is a private key.
(public-key path)
Public key constructor from file path.
Public key constructor from file path.
(public-key->jwk public)
Converts JCA public key to clojure map representing JWK object
Converts JCA public key to clojure map representing JWK object
(public-key? k)
Return true if key k
is a public key.
Return true if key `k` is a public key.
(str->private-key keydata)
(str->private-key keydata passphrase)
Private key constructor from string.
Private key constructor from string.
(str->public-key keydata)
Public key constructor from string.
Public key constructor from string.
Wrap a key using some of key wrapping algorithms.
Wrap a key using some of key wrapping algorithms.
Wrap a key using some of key wrapping algorithms.
Wrap a key using some of key wrapping algorithms.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close