array bounds error in XMLSignatureSigningStage

Description

If the includeKeyValue property is set (which it is not by default) then XMLSignatureSigningStage attempts to find a public key value to include in the signature.

If the pubKey property is set, the public key will be taken from that. If not, the code attempts to extract the public key from the first provided certificate. If no certificates have been provided, this results in an IndexOutOfBoundsException.

It would be better to simply omit the key value in this case.

Environment

None

Activity

Show:

Ian YoungSeptember 27, 2019 at 4:56 PM

Done, commit 76edc2fdfc6f29ecfba5057f7a86a8e5b2fc104f.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Created September 27, 2019 at 1:40 PM
Updated May 16, 2024 at 12:37 PM
Resolved September 27, 2019 at 3:22 PM

Flag notifications