本文整理了Java中gov.nist.toolkit.installation.server.Installation.getKeystoreDir()
方法的一些代码示例,展示了Installation.getKeystoreDir()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Installation.getKeystoreDir()
方法的具体详情如下:
包路径:gov.nist.toolkit.installation.server.Installation
类名称:Installation
方法名:getKeystoreDir
暂无
代码示例来源:origin: usnistgov/iheos-toolkit2
public File getKeystorePropertiesFile(String environment) {
File dir = getKeystoreDir(environment);
return new File(dir, "keystore.properties");
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public File getKeystore(String environmentName) {
return new File(getKeystoreDir(environmentName), "keystore");
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public File getTruststorePropertiesFile(String environment) {
File dir = getKeystoreDir(environment);
File f = new File(dir, "truststore.properties");
if (f.exists()) {
return f;
}
return getKeystorePropertiesFile(environment);
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public File getTruststore(String environmentName) {
File f = new File(getKeystoreDir(environmentName), "truststore");
if (f.exists()) {
return f;
}
return getKeystore(environmentName);
}
代码示例来源:origin: usnistgov/iheos-toolkit2
@Override
public File getKeystoreDir() throws EnvironmentNotSelectedException {
File f = Installation.instance().getKeystoreDir(environmentName);
if (f.exists() && f.isDirectory())
return f;
throw new EnvironmentNotSelectedException("Environment " + environmentName + " does not have a keystore");
}
内容来源于网络,如有侵权,请联系作者删除!