(read file)
Read a PEM file. The following formats (identified by the PEM's BEGIN
block) are supported:
RSA PRIVATE KEY
)PRIVATE KEY
)PUBLIC KEY
)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.
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`.
Protocol for a read PEM file.
Protocol for a read PEM file.
(private-key _)
Get the key as an instance of java.security.PrivateKey
.
Get the key as an instance of `java.security.PrivateKey`.
(public-key _)
Get the key as an instance of java.security.PublicKey
.
Get the key as an instance of `java.security.PublicKey`.
(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`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close