Package org.bouncycastle.openssl.jcajce
Class JcaPEMWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.BufferedWriter
-
- org.bouncycastle.util.io.pem.PemWriter
-
- org.bouncycastle.openssl.jcajce.JcaPEMWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class JcaPEMWriter extends org.bouncycastle.util.io.pem.PemWriter
General purpose writer for OpenSSL PEM objects based on JCA/JCE classes.
-
-
Constructor Summary
Constructors Constructor Description JcaPEMWriter(Writer out)
Base constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeObject(Object obj)
void
writeObject(Object obj, PEMEncryptor encryptor)
void
writeObject(org.bouncycastle.util.io.pem.PemObjectGenerator obj)
-
-
-
Constructor Detail
-
JcaPEMWriter
public JcaPEMWriter(Writer out)
Base constructor.- Parameters:
out
- output stream to use.
-
-
Method Detail
-
writeObject
public void writeObject(Object obj) throws IOException
- Throws:
IOException
-
writeObject
public void writeObject(Object obj, PEMEncryptor encryptor) throws IOException
- Parameters:
obj
-encryptor
-- Throws:
IOException
-
writeObject
public void writeObject(org.bouncycastle.util.io.pem.PemObjectGenerator obj) throws IOException
- Overrides:
writeObject
in classorg.bouncycastle.util.io.pem.PemWriter
- Throws:
IOException
-
-