(read input)Read a PEM input. The following formats (identified by the PEM's BEGIN
block) are supported:
RSA PRIVATE KEY)PRIVATE KEY)PUBLIC KEY)CERTIFICATE)The result will be a map with :type being one of :pkcs1, :pkcs8,
:x509-public-key or :x509-certificate and additional, type-specific
data.
Read a PEM input. The following formats (identified by the PEM's `BEGIN` block) are supported: - PKCS#1 (`RSA PRIVATE KEY`) - PKCS#8 (`PRIVATE KEY`) - X509 Public Key (`PUBLIC KEY`) - X509 Certificate (`CERTIFICATE`) The result will be a map with `:type` being one of `:pkcs1`, `:pkcs8`, `:x509-public-key` or `:x509-certificate` and additional, type-specific data.
(read-certificate input)Read an X509Certificate from the given input. Will throw an
AssertionError if the input does not contain a certificate.
Read an `X509Certificate` from the given input. Will throw an `AssertionError` if the input does not contain a certificate.
(read-key-pair input)Read a KeyPair from the given input. Will throw an AssertionError if
the input does not contain a private key.
Note that the key pair might not contain a public key (e.g. in the case of PKCS#8 input).
Read a `KeyPair` from the given input. Will throw an `AssertionError` if the input does not contain a private key. Note that the key pair might not contain a public key (e.g. in the case of PKCS#8 input).
(read-private-key input)Read a PrivateKey from the given input. Will throw an AssertionError if
the input does not contain a private key.
Read a `PrivateKey` from the given input. Will throw an `AssertionError` if the input does not contain a private key.
(read-public-key input)Read a PublicKey from the given input. Will throw an AssertionError if
the input does not contain a public key.
Read a `PublicKey` from the given input. Will throw an `AssertionError` if the input does not contain a public key.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |