Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-498

Retrieving of public key from certificates in missing for signed results in compare credential method of org.apache.wss4j.dom.saml.DOMSAMLUtil

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • WSS4J Core
    • None

    Description

      org.apache.wss4j.dom.saml.DOMSAMLUtil compareCredentials , there is a check to compare the certificates , public key and secret key. There might be a case when client signed results contain public key and subjectKeyInfo contains certificate. There should be an additional check the retreive the public key from certificate whenever public key is null
      "if(subjectPublicKey == null && subjectCerts != null && subjectCerts.length> 0)

      { subjectPublicKey = subjectCerts[0].getPublicKey();}

      "

      Attachments

        1. DOMSAMLUtil.java
          10 kB
          Renu

        Activity

          People

            coheigea Colm O hEigeartaigh
            renu25 Renu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: