Class JcaPEMWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

    public class JcaPEMWriter
    extends org.bouncycastle.util.io.pem.PemWriter
    General purpose writer for OpenSSL PEM objects based on JCA/JCE classes.
    • Field Summary

      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      JcaPEMWriter​(java.io.Writer out)
      Base constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void writeObject​(java.lang.Object obj)  
      void writeObject​(java.lang.Object obj, PEMEncryptor encryptor)  
      void writeObject​(org.bouncycastle.util.io.pem.PemObjectGenerator obj)  
      • Methods inherited from class org.bouncycastle.util.io.pem.PemWriter

        getOutputSize
      • Methods inherited from class java.io.BufferedWriter

        close, flush, newLine, write, write, write
      • Methods inherited from class java.io.Writer

        append, append, append, nullWriter, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JcaPEMWriter

        public JcaPEMWriter​(java.io.Writer out)
        Base constructor.
        Parameters:
        out - output stream to use.
    • Method Detail

      • writeObject

        public void writeObject​(java.lang.Object obj)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeObject

        public void writeObject​(java.lang.Object obj,
                                PEMEncryptor encryptor)
                         throws java.io.IOException
        Parameters:
        obj -
        encryptor -
        Throws:
        java.io.IOException
      • writeObject

        public void writeObject​(org.bouncycastle.util.io.pem.PemObjectGenerator obj)
                         throws java.io.IOException
        Overrides:
        writeObject in class org.bouncycastle.util.io.pem.PemWriter
        Throws:
        java.io.IOException