Class CaConfs


  • public class CaConfs
    extends java.lang.Object
    Helper class to convert the CA configuration.
    Since:
    2.1.0
    Author:
    Lijun Liao (xipki)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkName​(java.lang.String param, java.lang.String paramName)  
      static java.io.InputStream convertFileConfToZip​(java.lang.String confFilename)  
      static void marshal​(CaConfType.CaSystem root, java.io.OutputStream out)
      Serialize a {#CaConfType.CaSystem} object to the output stream.
      • Methods inherited from class java.lang.Object

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

      • marshal

        public static void marshal​(CaConfType.CaSystem root,
                                   java.io.OutputStream out)
                            throws org.xipki.util.exception.InvalidConfException,
                                   java.io.IOException
        Serialize a {#CaConfType.CaSystem} object to the output stream. The specified stream remains open after this method returns.
        Parameters:
        root - the object to be serialized.
        out - the output stream.
        Throws:
        org.xipki.util.exception.InvalidConfException - if the configuration is not valid.
        java.io.IOException - if IO error occurs while writing to the output stream.
      • convertFileConfToZip

        public static java.io.InputStream convertFileConfToZip​(java.lang.String confFilename)
                                                        throws java.io.IOException,
                                                               org.xipki.util.exception.InvalidConfException
        Throws:
        java.io.IOException
        org.xipki.util.exception.InvalidConfException
      • checkName

        public static void checkName​(java.lang.String param,
                                     java.lang.String paramName)
                              throws org.xipki.util.exception.InvalidConfException
        Throws:
        org.xipki.util.exception.InvalidConfException