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

Incorrect CertPathParameters declaration in JSSE Reference Guide sample code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8u40
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b04

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: