public class Securities extends Object implements Closeable
| Constructor and Description |
|---|
Securities() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static boolean |
getBoolean(Properties props,
String key,
boolean dfltValue) |
static int |
getInt(Properties props,
String key,
int dfltValue) |
P11CryptServiceFactory |
getP11CryptServiceFactory() |
SecurityFactory |
getSecurityFactory() |
static String |
getString(Properties props,
String key,
String dfltValue) |
void |
init() |
static Properties |
loadProperties(String path) |
static Properties |
loadProperties(String path,
String dfltPath) |
void |
setPasswordCfg(String file) |
void |
setSecuirtyCfg(String file) |
public void setPasswordCfg(String file)
public void setSecuirtyCfg(String file)
public SecurityFactory getSecurityFactory()
public P11CryptServiceFactory getP11CryptServiceFactory()
public void init()
throws IOException,
org.xipki.util.InvalidConfException
IOExceptionorg.xipki.util.InvalidConfExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic static Properties loadProperties(String path, String dfltPath) throws IOException
IOExceptionpublic static Properties loadProperties(String path) throws IOException
IOExceptionpublic static String getString(Properties props, String key, String dfltValue)
public static int getInt(Properties props, String key, int dfltValue)
public static boolean getBoolean(Properties props, String key, boolean dfltValue)
Copyright © 2018. All rights reserved.