本文整理汇总了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);
}
示例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);
}
}
示例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);
}
示例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);
}