| |
|
| java.lang.Object org.ejbca.ui.cli.batch.BatchMakeP12
BatchMakeP12 | public class BatchMakeP12 (Code) | | This class generates keys and request certificates for all users with status NEW. The result is
generated PKCS12-files.
version: $Id: BatchMakeP12.java,v 1.12 2007/05/15 21:00:16 jeklund Exp $ |
Constructor Summary | |
public | BatchMakeP12() Creates new BatchMakeP12 object. |
Method Summary | |
public void | createAllFailed() Creates P12-files for all users with status FAILED in the local database. | public void | createAllKeyRecover() Creates P12-files for all users with status KEYRECOVER in the local database. | public void | createAllNew() Creates P12-files for all users with status NEW in the local database. | public void | createAllWithStatus(int status) Creates P12-files for all users with status in the local database. | public void | createUser(String username) Creates P12-files for one user in the local database. | public static Context | getInitialContext() | public static void | main(String[] args) | public void | setMainStoreDir(String dir) Sets the location where generated P12-files will be stored, full name will be:
mainStoreDir/username.p12. |
createAllFailed | public void createAllFailed() throws Exception(Code) | | Creates P12-files for all users with status FAILED in the local database.
throws: Exception - if something goes wrong... |
createAllKeyRecover | public void createAllKeyRecover() throws Exception(Code) | | Creates P12-files for all users with status KEYRECOVER in the local database.
throws: Exception - if something goes wrong... |
createAllNew | public void createAllNew() throws Exception(Code) | | Creates P12-files for all users with status NEW in the local database.
throws: Exception - if something goes wrong... |
createAllWithStatus | public void createAllWithStatus(int status) throws Exception(Code) | | Creates P12-files for all users with status in the local database.
Parameters: status - throws: Exception - if something goes wrong... |
createUser | public void createUser(String username) throws Exception(Code) | | Creates P12-files for one user in the local database.
Parameters: username - username throws: Exception - if the user does not exist or something goes wrong during generation |
main | public static void main(String[] args)(Code) | | Main
Parameters: args - command line arguments |
setMainStoreDir | public void setMainStoreDir(String dir)(Code) | | Sets the location where generated P12-files will be stored, full name will be:
mainStoreDir/username.p12.
Parameters: dir - existing directory |
|
|
|