All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.jsse.provider.PKIXUtil Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
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);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy