Package org.xipki.ca.api.mgmt
Class CaConfs
- java.lang.Object
-
- org.xipki.ca.api.mgmt.CaConfs
-
public class CaConfs extends java.lang.ObjectHelper 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 voidcheckName(java.lang.String param, java.lang.String paramName)static java.io.InputStreamconvertFileConfToZip(java.lang.String confFilename)static voidmarshal(CaConfType.CaSystem root, java.io.OutputStream out)Serialize a {#CaConfType.CaSystem} object to the output stream.
-
-
-
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.IOExceptionorg.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
-
-