Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4897

STS: check not found certificates in DefaultSubjectProvider for symmetric key type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6.8, 2.7.5, 2.5.11
    • STS
    • None
    • Unknown

    Description

      DefaultSubjectProvider retrieves X509 certificate to encrypt key information. It asks crypto provider for X509 certs using:
      X509Certificate certificate = crypto.getX509Certificates(cryptoType)[0];

      If certificates are not found it caused NLP or ArrayOutOfBound exceptions in STS code.

      Proposal: check returned array for null and 0 length.

      Attachments

        Activity

          People

            ashakirin Andrei Shakirin
            ashakirin Andrei Shakirin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: