You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Auth constructor supports the ability to read SP public cert/private key from a KeyStore. A KeyStoreSettings object must be provided with the KeyStore, the Alias and the storePass if any.
364
+
The Auth constructor supports the ability to read SP public cert/private key from a KeyStore. A KeyStoreSettings object must be provided with the KeyStore, the Alias and the KeyEntry password.
@@ -429,19 +434,22 @@ public Boolean isValid() throws Exception {
429
434
430
435
if (signature != null && !signature.isEmpty()) {
431
436
X509Certificatecert = settings.getIdpx509cert();
432
-
if (cert == null) {
433
-
thrownewSettingsException("In order to validate the sign on the Logout Request, the x509cert of the IdP is required", SettingsException.CERT_NOT_FOUND);
if (multipleCertList != null && multipleCertList.size() != 0) {
440
442
certList.addAll(multipleCertList);
441
443
}
442
444
443
-
if (certList.isEmpty() || !certList.contains(cert)) {
444
-
certList.add(0, cert);
445
+
if (cert != null) {
446
+
if (certList.isEmpty() || !certList.contains(cert)) {
447
+
certList.add(0, cert);
448
+
}
449
+
}
450
+
451
+
if (certList.isEmpty()) {
452
+
thrownewSettingsException("In order to validate the sign on the Logout Request, the x509cert of the IdP is required", SettingsException.CERT_NOT_FOUND);
@@ -230,9 +230,6 @@ public Boolean isValid(String requestId) {
230
230
231
231
if (signature != null && !signature.isEmpty()) {
232
232
X509Certificatecert = settings.getIdpx509cert();
233
-
if (cert == null) {
234
-
thrownewSettingsException("In order to validate the sign on the Logout Response, the x509cert of the IdP is required", SettingsException.CERT_NOT_FOUND);
@@ -241,8 +238,14 @@ public Boolean isValid(String requestId) {
241
238
certList.addAll(multipleCertList);
242
239
}
243
240
244
-
if (certList.isEmpty() || !certList.contains(cert)) {
245
-
certList.add(0, cert);
241
+
if (cert != null) {
242
+
if (certList.isEmpty() || !certList.contains(cert)) {
243
+
certList.add(0, cert);
244
+
}
245
+
}
246
+
247
+
if (certList.isEmpty()) {
248
+
thrownewSettingsException("In order to validate the sign on the Logout Response, the x509cert of the IdP is required", SettingsException.CERT_NOT_FOUND);
246
249
}
247
250
248
251
StringsignAlg = request.getParameter("SigAlg");
@@ -274,13 +277,13 @@ public Boolean isValid(String requestId) {
274
277
}
275
278
}
276
279
277
-
publicBooleanisValid() {
280
+
publicBooleanisValid() {
278
281
returnisValid(null);
279
282
}
280
283
281
284
/**
282
285
* Gets the Issuer from Logout Response.
283
-
*
286
+
*
284
287
* @return the issuer of the logout response
285
288
*
286
289
* @throws XPathExpressionException
@@ -290,7 +293,7 @@ public String getIssuer() throws XPathExpressionException {
0 commit comments