本文整理汇总了Java中eu.europa.esig.dss.client.http.commons.OCSPDataLoader类的典型用法代码示例。如果您正苦于以下问题:Java OCSPDataLoader类的具体用法?Java OCSPDataLoader怎么用?Java OCSPDataLoader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OCSPDataLoader类属于eu.europa.esig.dss.client.http.commons包,在下文中一共展示了OCSPDataLoader类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testOCSPWithoutNonce
import eu.europa.esig.dss.client.http.commons.OCSPDataLoader; //导入依赖的package包/类
@Test
public void testOCSPWithoutNonce() {
OnlineOCSPSource ocspSource = new OnlineOCSPSource();
ocspSource.setDataLoader(new OCSPDataLoader());
OCSPToken ocspToken = ocspSource.getOCSPToken(certificateToken, rootToken);
assertNotNull(ocspToken);
assertNotNull(ocspToken.getBasicOCSPResp());
assertFalse(ocspToken.isUseNonce());
}
示例2: testOCSPWithNonce
import eu.europa.esig.dss.client.http.commons.OCSPDataLoader; //导入依赖的package包/类
@Test
public void testOCSPWithNonce() {
OnlineOCSPSource ocspSource = new OnlineOCSPSource();
ocspSource.setDataLoader(new OCSPDataLoader());
ocspSource.setNonceSource(new SecureRandomNonceSource());
OCSPToken ocspToken = ocspSource.getOCSPToken(certificateToken, rootToken);
assertNotNull(ocspToken);
assertTrue(ocspToken.isUseNonce());
assertTrue(ocspToken.isNonceMatch());
}
示例3: onlineOcspSource
import eu.europa.esig.dss.client.http.commons.OCSPDataLoader; //导入依赖的package包/类
private OnlineOCSPSource onlineOcspSource() {
OnlineOCSPSource ocspSource = new OnlineOCSPSource();
OCSPDataLoader dataLoader = new OCSPDataLoader();
dataLoader.setProxyConfig(getProxyConfig());
ocspSource.setDataLoader(dataLoader);
return ocspSource;
}
示例4: createOcspDataLoader
import eu.europa.esig.dss.client.http.commons.OCSPDataLoader; //导入依赖的package包/类
public static SkDataLoader createOcspDataLoader(Configuration configuration) {
SkDataLoader dataLoader = new SkDataLoader(configuration);
dataLoader.setContentType(OCSPDataLoader.OCSP_CONTENT_TYPE);
return dataLoader;
}
示例5: OnlineOCSPSource
import eu.europa.esig.dss.client.http.commons.OCSPDataLoader; //导入依赖的package包/类
/**
* Create an OCSP source The default constructor for OnlineOCSPSource. The default {@code OCSPDataLoader} is set. It
* is possible to change it with {@code
* #setDataLoader}.
*/
public OnlineOCSPSource() {
dataLoader = new OCSPDataLoader();
}