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

Incorrect CertPathParameters declaration in JSSE Reference Guide sample code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8u40
    • None
    • docs
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: