• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java CertificateUtils类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



CertificateUtils类属于org.eclipse.jetty.util.security包,在下文中一共展示了CertificateUtils类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: loadCRL

import org.eclipse.jetty.util.security.CertificateUtils; //导入依赖的package包/类
/**
 * Loads certificate revocation list (CRL) from a file.
 *
 * Required for integrations to be able to override the mechanism used to
 * load CRL in order to provide their own implementation.
 *
 * @param crlPath path of certificate revocation list file
 * @return Collection of CRL's
 * @throws Exception if the certificate revocation list cannot be loaded
 */
protected Collection<? extends CRL> loadCRL(String crlPath) throws Exception
{
    return CertificateUtils.loadCRL(crlPath);
}
 
开发者ID:AdrianBZG,项目名称:PhoneChat,代码行数:15,代码来源:SslContextFactory.java


示例5: 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类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RegisteredServiceAttributeFilter类代码示例发布时间:2022-05-22
下一篇:
Java StoreFeatures类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap