org.gudy.bouncycastle.openssl
Class PEMWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.BufferedWriter
          extended by org.gudy.bouncycastle.openssl.PEMWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class PEMWriter
extends BufferedWriter

General purpose writer for OpenSSL PEM objects.


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
PEMWriter(Writer out)
          Base constructor.
PEMWriter(Writer out, String provider)
           
 
Method Summary
 void writeObject(Object o)
           
 void writeObject(Object obj, String algorithm, char[] password, SecureRandom random)
           
 
Methods inherited from class java.io.BufferedWriter
close, flush, newLine, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PEMWriter

public PEMWriter(Writer out)
Base constructor.

Parameters:
out - output stream to use.

PEMWriter

public PEMWriter(Writer out,
                 String provider)
Method Detail

writeObject

public void writeObject(Object o)
                 throws IOException
Throws:
IOException

writeObject

public void writeObject(Object obj,
                        String algorithm,
                        char[] password,
                        SecureRandom random)
                 throws IOException
Throws:
IOException