本文整理汇总了Java中org.apache.jmeter.util.JsseSSLManager.getInstance方法的典型用法代码示例。如果您正苦于以下问题:Java JsseSSLManager.getInstance方法的具体用法?Java JsseSSLManager.getInstance怎么用?Java JsseSSLManager.getInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.jmeter.util.JsseSSLManager
的用法示例。
在下文中一共展示了JsseSSLManager.getInstance方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SlowHC4SSLSocketFactory
import org.apache.jmeter.util.JsseSSLManager; //导入方法依赖的package包/类
/**
* Create a factory
* @param cps - characters per second, must be > 0
* @throws GeneralSecurityException if there's a problem setting up the security
* @throws IllegalArgumentException if cps ≤ 0
*/
public SlowHC4SSLSocketFactory(final int cps) throws GeneralSecurityException {
super(new HttpSSLProtocolSocketFactory((JsseSSLManager)JsseSSLManager.getInstance(), cps));
}
示例2: HC4TrustAllSSLSocketFactory
import org.apache.jmeter.util.JsseSSLManager; //导入方法依赖的package包/类
/**
* Create an SSL factory which trusts all certificates and hosts.
* {@link SSLSocketFactory#SSLSocketFactory(TrustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier)}
* @throws GeneralSecurityException if there's a problem setting up the security
*/
public HC4TrustAllSSLSocketFactory() throws GeneralSecurityException {
this(new HttpSSLProtocolSocketFactory((JsseSSLManager)JsseSSLManager.getInstance(), JsseSSLManager.CPS));
}