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