InlineX509DataProvider skips credential extraction if only X509SKI is present
Hi everyone,
were're receiving a SAML response containing a signature with this KeyInfo:
Code:
<ds:KeyInfo>
<ds:X509Data>
<ds:X509SKI>
....
</ds:X509SKI>
</ds:X509Data>
</ds:KeyInfo>
The signature validation failes. Apparently the InlineX509DataProvider skips processing because it doesn't find any X509Certificate elements. The subject key identifier doesn't seem to be sufficient to denote the key.
Code:
List<X509Certificate> certs = extractCertificates(x509Data);
if (certs.isEmpty()) {
log.info("The X509Data contained no X509Certificate elements, skipping credential extraction");
return null;
}
Is this behaviour desired? Can we do anything to make the signature validation work?
TIA for any hints!
-- Andreas