org.bouncycastle.jsse.provider.PKIXUtil Maven / Gradle / Ivy
package org.bouncycastle.jsse.provider;
import java.security.cert.CertPathBuilder;
import java.security.cert.PKIXBuilderParameters;
import java.security.cert.X509Certificate;
import java.util.Map;
abstract class PKIXUtil
{
private static final Class> pkixRevocationCheckerClass;
static
{
Class> clazz = null;
try
{
clazz = ReflectionUtil.getClass("java.security.cert.PKIXRevocationChecker");
}
catch (Exception e)
{
}
pkixRevocationCheckerClass = clazz;
}
static void addStatusResponses(CertPathBuilder pkixBuilder, PKIXBuilderParameters pkixParameters,
Map statusResponseMap)
{
if (null != pkixRevocationCheckerClass)
{
JsseUtils_8.addStatusResponses(pkixBuilder, pkixParameters, statusResponseMap);
}
}
}