Class PEMWriter
java.lang.Object
java.io.Writer
java.io.BufferedWriter
org.gudy.bouncycastle.openssl.PEMWriter
- All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
General purpose writer for OpenSSL PEM objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidwriteEncoded(byte[] bytes) private voidwriteFooter(String type) private voidwriteHeader(String type) private voidwriteHexEncoded(byte[] bytes) voidvoidwriteObject(Object obj, String algorithm, char[] password, SecureRandom random)
-
Field Details
-
provider
-
-
Constructor Details
-
PEMWriter
-
PEMWriter
-
-
Method Details
-
writeHexEncoded
- Throws:
IOException
-
writeEncoded
- Throws:
IOException
-
writeObject
- Throws:
IOException
-
writeObject
public void writeObject(Object obj, String algorithm, char[] password, SecureRandom random) throws IOException - Throws:
IOException
-
writeHeader
- Throws:
IOException
-