本文整理匯總了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();
}