gov.nist.toolkit.installation.server.Installation.getKeystoreDir()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中gov.nist.toolkit.installation.server.Installation.getKeystoreDir()方法的一些代码示例,展示了Installation.getKeystoreDir()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Installation.getKeystoreDir()方法的具体详情如下:
包路径:gov.nist.toolkit.installation.server.Installation
类名称:Installation
方法名:getKeystoreDir

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");
}

相关文章