Class CaConfs


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

      • marshal

        public static void marshal​(CaConfType.CaSystem root,
                                   OutputStream out)
                            throws org.xipki.util.exception.InvalidConfException,
                                   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.
        IOException - if IO error occurs while writing to the output stream.
      • convertFileConfToZip

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

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