public class DbPorter extends DbToolBase
| Modifier and Type | Class and Description |
|---|---|
static class |
DbPorter.CaDbEntryType |
static class |
DbPorter.DbPortFileNameIterator |
static class |
DbPorter.OcspDbEntryType |
| Modifier and Type | Field and Description |
|---|---|
protected DbSchemaInfo |
dbSchemaInfo |
protected int |
dbSchemaVersion |
static String |
EXPORT_PROCESS_LOG_FILENAME |
static String |
FILENAME_CA_CERTSTORE |
static String |
FILENAME_CA_CONFIGURATION |
static String |
FILENAME_OCSP_CERTSTORE |
static String |
IMPORT_PROCESS_LOG_FILENAME |
static String |
IMPORT_TO_OCSP_PROCESS_LOG_FILENAME |
protected int |
maxX500nameLen |
static int |
VERSION_V1
For XiPKI Version 5.3.x
|
static int |
VERSION_V2
For XiPKI Version 5.4.x
|
baseDir, connection, datasource, stopMe| Constructor and Description |
|---|
DbPorter(org.xipki.datasource.DataSourceWrapper datasource,
String baseDir,
AtomicBoolean stopMe) |
| Modifier and Type | Method and Description |
|---|---|
protected org.xipki.util.FileOrBinary |
buildFileOrBase64Binary(String base64Content,
String fileName) |
protected org.xipki.util.FileOrBinary |
buildFileOrBinary(byte[] content,
String fileName) |
protected org.xipki.util.FileOrValue |
buildFileOrValue(String content,
String fileName) |
static void |
echoToFile(String content,
File file) |
protected byte[] |
readContent(org.xipki.util.FileOrBinary fileOrBinary) |
protected String |
readContent(org.xipki.util.FileOrValue fileOrValue) |
buildFilename, close, commit, count, createStatement, deleteFromTableWithLargerId, deleteTmpFiles, disableAutoCommit, getDbConfProperties, getZipOutputStream, max, max, min, min, prepareStatement, recoverAutoCommit, releaseResources, rollback, setBoolean, setInt, setLong, setSavepoint, tableExists, tableHasColumn, translate, writeLinepublic static final String FILENAME_CA_CONFIGURATION
public static final String FILENAME_CA_CERTSTORE
public static final String FILENAME_OCSP_CERTSTORE
public static final String EXPORT_PROCESS_LOG_FILENAME
public static final String IMPORT_PROCESS_LOG_FILENAME
public static final String IMPORT_TO_OCSP_PROCESS_LOG_FILENAME
public static final int VERSION_V1
public static final int VERSION_V2
protected final int dbSchemaVersion
protected final int maxX500nameLen
protected final DbSchemaInfo dbSchemaInfo
public DbPorter(org.xipki.datasource.DataSourceWrapper datasource,
String baseDir,
AtomicBoolean stopMe)
throws org.xipki.datasource.DataAccessException
org.xipki.datasource.DataAccessExceptionprotected org.xipki.util.FileOrValue buildFileOrValue(String content, String fileName) throws IOException
IOExceptionprotected org.xipki.util.FileOrBinary buildFileOrBase64Binary(String base64Content, String fileName) throws IOException
IOExceptionprotected org.xipki.util.FileOrBinary buildFileOrBinary(byte[] content,
String fileName)
throws IOException
IOExceptionprotected byte[] readContent(org.xipki.util.FileOrBinary fileOrBinary)
throws IOException
IOExceptionprotected String readContent(org.xipki.util.FileOrValue fileOrValue) throws IOException
IOExceptionpublic static void echoToFile(String content, File file) throws IOException
IOExceptionCopyright © 2023. All rights reserved.