Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8055067

Incorrect CertPathParameters declaration in JSSE Reference Guide sample code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • None
    • docs
    • b04

        In the section "PKIX TrustManager Support" in the JSSE Reference Guide there is sample code with the following declaration and subsequent calls

        CertPathParameters pkixParams = new PKIXBuilderParameters(anchors, new
        X509CertSelector());
        ...
        pkixParams.addCertStore(CertStore.getInstance("LDAP", lcsp));
        ...
        pkixParams.setRevocationEnabled(true);

        The type of "pkixParams" should be a PKIXBuilderParameters object so the subsequent addCertStore() and setRevocationEnabled() calls will compile.

              rgallard Raymond Gallardo
              jnimeh Jamil Nimeh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: