Package org.jboss.netty.handler.ssl
Class PemReader
java.lang.Object
org.jboss.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
FieldsModifier and TypeFieldDescriptionprivate static final Pattern
private static final Pattern
private static final InternalLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ChannelBuffer[]
readCertificates
(File file) private static String
readContent
(File file) (package private) static ChannelBuffer
readPrivateKey
(File file) private static void
safeClose
(InputStream in) private static void
safeClose
(OutputStream out)
-
Field Details
-
logger
-
CERT_PATTERN
-
KEY_PATTERN
-
-
Constructor Details
-
PemReader
private PemReader()
-
-
Method Details
-
readCertificates
- Throws:
CertificateException
-
readPrivateKey
- Throws:
KeyException
-
readContent
- Throws:
IOException
-
safeClose
-
safeClose
-