Liking cljdoc? Tell your friends :D

pem-reader.core


readclj

(read input)

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

read-certificateclj

(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.
sourceraw docstring

read-key-pairclj

(read-key-pair input)

Read a PrivateKey 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 `PrivateKey` 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.
sourceraw docstring

read-private-keyclj

(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.
sourceraw docstring

read-public-keyclj

(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.
sourceraw docstring

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

× close