当前位置: 首页>>代码示例>>Java>>正文


Java CertificateUtils.getKeyStore方法代码示例

本文整理汇总了Java中org.eclipse.jetty.util.security.CertificateUtils.getKeyStore方法的典型用法代码示例。如果您正苦于以下问题:Java CertificateUtils.getKeyStore方法的具体用法?Java CertificateUtils.getKeyStore怎么用?Java CertificateUtils.getKeyStore使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jetty.util.security.CertificateUtils的用法示例。


在下文中一共展示了CertificateUtils.getKeyStore方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadTrustStore

import org.eclipse.jetty.util.security.CertificateUtils; //导入方法依赖的package包/类
@Override
protected KeyStore loadTrustStore(Resource resource) throws Exception {
    return CertificateUtils.getKeyStore(
            resource != null ? resource : getKeyStoreResource(),
            Objects.toString(getTrustStoreType(), getKeyStoreType()),
            Objects.toString(getTrustStoreProvider(), getKeyStoreProvider()),
            trustStorePassword);
}
 
开发者ID:vespa-engine,项目名称:vespa,代码行数:9,代码来源:JDiscSslContextFactory.java

示例2: buildKeyStore

import org.eclipse.jetty.util.security.CertificateUtils; //导入方法依赖的package包/类
protected static KeyStore buildKeyStore(String keyStoreLocation, String password) {
  try {
    return CertificateUtils.getKeyStore(null, keyStoreLocation, "JKS", null, password);
  } catch (Exception ex) {
    throw new IllegalStateException("Unable to build KeyStore from file: " + keyStoreLocation, ex);
  }
}
 
开发者ID:europeana,项目名称:search,代码行数:8,代码来源:SSLTestConfig.java

示例3: getKeyStore

import org.eclipse.jetty.util.security.CertificateUtils; //导入方法依赖的package包/类
/**
 * Loads keystore using an input stream or a file path in the same
 * order of precedence.
 *
 * Required for integrations to be able to override the mechanism
 * used to load a keystore in order to provide their own implementation.
 *
 * @param storeStream keystore input stream
 * @param storePath path of keystore file
 * @param storeType keystore type
 * @param storeProvider keystore provider
 * @param storePassword keystore password
 * @return created keystore
 * @throws Exception if the keystore cannot be obtained
 */
protected KeyStore getKeyStore(InputStream storeStream, String storePath, String storeType, String storeProvider, String storePassword) throws Exception
{
    return CertificateUtils.getKeyStore(storeStream, storePath, storeType, storeProvider, storePassword);
}
 
开发者ID:AdrianBZG,项目名称:PhoneChat,代码行数:20,代码来源:SslContextFactory.java

示例4: getKeyStore

import org.eclipse.jetty.util.security.CertificateUtils; //导入方法依赖的package包/类
/**
 * Loads keystore using an input stream or a file path in the same
 * order of precedence.
 *
 * Required for integrations to be able to override the mechanism
 * used to load a keystore in order to provide their own implementation.
 *
 * @param storeStream keystore input stream
 * @param storePath path of keystore file
 * @param storeType keystore type
 * @param storeProvider keystore provider
 * @param storePassword keystore password
 * @return created keystore
 * @throws Exception if the keystore cannot be obtained
 *
 * @deprecated
 */
@Deprecated
protected KeyStore getKeyStore(InputStream storeStream, String storePath, String storeType, String storeProvider, String storePassword) throws Exception
{
    return CertificateUtils.getKeyStore(storeStream, storePath, storeType, storeProvider, storePassword);
}
 
开发者ID:itead,项目名称:IoTgo_Android_App,代码行数:23,代码来源:SslContextFactory.java


注:本文中的org.eclipse.jetty.util.security.CertificateUtils.getKeyStore方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。