Package io.netty.handler.ssl
Class PemReader
java.lang.Object
io.netty.handler.ssl.PemReader
Reads a PEM file and converts it into a list of DERs so that they are imported into a
KeyStore
easily.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static KeyException
(package private) static ByteBuf[]
readCertificates
(File file) (package private) static ByteBuf[]
private static String
(package private) static ByteBuf
readPrivateKey
(File file) (package private) static ByteBuf
private static void
safeClose
(InputStream in) private static void
safeClose
(OutputStream out)
-
Field Details
-
logger
-
CERT_HEADER
-
CERT_FOOTER
-
KEY_HEADER
-
KEY_FOOTER
-
BODY
-
-
Constructor Details
-
PemReader
private PemReader()
-
-
Method Details
-
readCertificates
- Throws:
CertificateException
-
readCertificates
- Throws:
CertificateException
-
readPrivateKey
- Throws:
KeyException
-
readPrivateKey
- Throws:
KeyException
-
keyNotFoundException
-
readContent
- Throws:
IOException
-
safeClose
-
safeClose
-