Incorrect CertPathParameters declaration in JSSE Reference Guide sample code

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8u40
    • Affects Version/s: None
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: