Code example for PKIXParameters

Methods: getTargetCertConstraints, getTrustAnchors

0
    { 
        ExtendedPKIXBuilderParameters params;
        try 
        { 
            params = new ExtendedPKIXBuilderParameters(pkixParams
                    .getTrustAnchors(), X509CertStoreSelector
                    .getInstance((X509CertSelector) pkixParams
                            .getTargetCertConstraints()));
        } 
        catch (Exception e)
        { 
            // cannot happen 
            throw new RuntimeException(e.getMessage());
        } 
        params.setParams(pkixParams);
        return params;
    } 
}