Top Description Fields Constructors Methods
io.netty.handler.ssl

pack-priv final Class PemReader

extends Object
Class Inheritance
Imports
io.netty.buffer.ByteBuf, .Unpooled, io.netty.handler.codec.base64.Base64, io.netty.util.CharsetUtil, io.netty.util.internal.logging.InternalLogger, .InternalLoggerFactory, java.io.ByteArrayOutputStream, .File, .FileInputStream, .FileNotFoundException, .IOException, .InputStream, .OutputStream, java.security.KeyException, .KeyStore, java.security.cert.CertificateException, java.util.ArrayList, .List, java.util.regex.Matcher, .Pattern

Reads a PEM file and converts it into a list of DERs so that they are imported into a KeyStore easily.

Field Summary

Modifier and TypeField and Description
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final InternalLogger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static KeyException
pack-priv static ByteBuf[]
pack-priv static ByteBuf[]
private static String
pack-priv static ByteBuf
pack-priv static ByteBuf
private static void
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BODYback to summary
private static final Pattern BODY
CERT_HEADERback to summary
private static final Pattern CERT_HEADER
KEY_HEADERback to summary
private static final Pattern KEY_HEADER
loggerback to summary
private static final InternalLogger logger

Constructor Detail

PemReaderback to summary
private PemReader()

Method Detail

keyNotFoundExceptionback to summary
private static KeyException keyNotFoundException()
readCertificatesback to summary
pack-priv static ByteBuf[] readCertificates(File file) throws CertificateException
readCertificatesback to summary
pack-priv static ByteBuf[] readCertificates(InputStream in) throws CertificateException
readContentback to summary
private static String readContent(InputStream in) throws IOException
readPrivateKeyback to summary
pack-priv static ByteBuf readPrivateKey(File file) throws KeyException
readPrivateKeyback to summary
pack-priv static ByteBuf readPrivateKey(InputStream in) throws KeyException
safeCloseback to summary
private static void safeClose(InputStream in)
safeCloseback to summary
private static void safeClose(OutputStream out)