Class PemParser

java.lang.Object
org.neo4j.driver.internal.pki.PemParser

public final class PemParser extends Object
Parse a public or private key.

In contrast to CertificateFactory, Java's KeyFactory's does not support reading textual pem files. PEM format reference: RFC7468 This implementation has support for

  • PKCS#8/X.509 Public Key
  • PKCS#8 and encrypted PKCS#8 private keys
  • PKCS#1 encoded RSA, DSA and EC.
  • Encrypted PKCS#1 encoded RSA, DSA and EC.