|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.install.KeyStoreMgt
public class KeyStoreMgt
Class to manage SSL KeyStore
| Field Summary | |
|---|---|
static String |
CERTIFICATE_ALIAS
Certificate Alias |
static String |
KEYSTORE_DIRECTORY
Directory below COMPIERE_HOME |
static String |
KEYSTORE_NAME
Name of KeyStore |
| Constructor Summary | |
|---|---|
KeyStoreMgt(String fileName,
char[] password)
Constructor. |
|
| Method Summary | |
|---|---|
static String |
escapeCommas(String in)
Escape Commas |
static void |
genkey(String alias,
char[] password,
String fileName,
String dname)
Generate Key |
Certificate |
getCertificate(String alias)
Get Certificate |
static String |
getDname(JFrame parent)
Get Distinguised Name |
KeyStore |
getKeyStore()
Get KeyStore |
static String |
getKeystoreFileName(String baseDir)
Get Keystore File Name |
static void |
keytool(String cmd)
Submit Command to Key Tool |
static void |
main(String[] args)
Test |
static void |
selfcert(String alias,
char[] password,
String fileName,
String dname)
Generate Key |
String |
verify(JFrame parent)
Verify/Create Key Store |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String KEYSTORE_DIRECTORY
public static String KEYSTORE_NAME
public static String CERTIFICATE_ALIAS
| Constructor Detail |
|---|
public KeyStoreMgt(String fileName,
char[] password)
fileName - key store file namepassword - - same password for key store and certificate| Method Detail |
|---|
public String verify(JFrame parent)
parent - frame
public KeyStore getKeyStore()
throws Exception
Exception
public Certificate getCertificate(String alias)
throws Exception
alias - alias
Exceptionpublic static String getDname(JFrame parent)
parent - interactive dialog
public static String escapeCommas(String in)
in - input string
public static void genkey(String alias,
char[] password,
String fileName,
String dname)
alias - compierepassword - passwordfileName - key store file name (may have spaces)dname - distinguished name
public static void selfcert(String alias,
char[] password,
String fileName,
String dname)
alias - compierepassword - passwordfileName - key store file name (may have spaces)dname - distinguished namepublic static void keytool(String cmd)
cmd - commandpublic static String getKeystoreFileName(String baseDir)
baseDir - COMPIERE_HOME
public static void main(String[] args)
args - ignored
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||