Liking cljdoc? Tell your friends :D

pem-reader.core


ByteConvertcljprotocol

as-bytesclj

(as-bytes _)
source

readclj

(read file)

Read a PEM file. 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 implement the pem-reader.core/ReadablePEM protocol.

Read a PEM file. 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 implement the `pem-reader.core/ReadablePEM` protocol.
sourceraw docstring

read-keycljmultimethod

Read key from byte array. type is the lowercased, keywordized value of the PEM's BEGIN block, e.g. :rsa-private-key for RSA PRIVATE KEY.

Read key from byte array. `type` is the lowercased, keywordized value
of the PEM's `BEGIN` block, e.g. `:rsa-private-key` for `RSA PRIVATE KEY`.
sourceraw docstring

ReadablePEMcljprotocol

Protocol for a read PEM file.

Protocol for a read PEM file.

private-keyclj

(private-key _)

Get the key as an instance of java.security.PrivateKey.

Get the key as an instance of `java.security.PrivateKey`.

public-keyclj

(public-key _)

Get the key as an instance of java.security.PublicKey.

Get the key as an instance of `java.security.PublicKey`.

typeclj

(type _)

Keyword identifying the key type, generated from the PEM's BEGIN block, e.g. :rsa-private-key for RSA PRIVATE KEY.

Keyword identifying the key type, generated from the PEM's `BEGIN` block,
e.g. `:rsa-private-key` for `RSA PRIVATE KEY`.
sourceraw docstring

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

× close