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
@@ -314,18 +316,18 @@ public Boolean isValid() throws XMLEntityException {
314
316
// Check the issuer
315
317
Stringissuer = getIssuer(logoutRequestDocument);
316
318
if (issuer != null && (issuer.isEmpty() || !issuer.equals(settings.getIdpEntityId()))) {
317
-
thrownewException("Invalid issuer in the Logout Request");
319
+
thrownewValidationError("Invalid issuer in the Logout Request", ValidationError.WRONG_ISSUER);
318
320
}
319
321
320
322
if (settings.getWantMessagesSigned() && (signature == null || signature.isEmpty())) {
321
-
thrownewException("The Message of the Logout Request is not signed and the SP requires it");
323
+
thrownewValidationError("The Message of the Logout Request is not signed and the SP requires it", ValidationError.NO_SIGNED_MESSAGE);
322
324
}
323
325
}
324
326
325
327
if (signature != null && !signature.isEmpty()) {
326
328
X509Certificatecert = settings.getIdpx509cert();
327
329
if (cert == null) {
328
-
thrownewException("In order to validate the sign on the Logout Request, the x509cert of the IdP is required");
330
+
thrownewSettingsException("In order to validate the sign on the Logout Request, the x509cert of the IdP is required", SettingsException.CERT_NOT_FOUND);
329
331
}
330
332
331
333
StringsignAlg = request.getParameter("SigAlg");
@@ -343,7 +345,7 @@ public Boolean isValid() throws XMLEntityException {
if (settings.getWantMessagesSigned() && (signature == null || signature.isEmpty())) {
208
-
thrownewException("The Message of the Logout Response is not signed and the SP requires it");
208
+
thrownewValidationError("The Message of the Logout Response is not signed and the SP requires it", ValidationError.NO_SIGNED_MESSAGE);
209
209
}
210
210
}
211
211
212
212
if (signature != null && !signature.isEmpty()) {
213
213
X509Certificatecert = settings.getIdpx509cert();
214
214
if (cert == null) {
215
-
thrownewException("In order to validate the sign on the Logout Response, the x509cert of the IdP is required");
215
+
thrownewSettingsException("In order to validate the sign on the Logout Response, the x509cert of the IdP is required", SettingsException.CERT_NOT_FOUND);
216
216
}
217
217
218
218
StringsignAlg = request.getParameter("SigAlg");
@@ -230,7 +230,7 @@ public Boolean isValid(String requestId) {
0 commit comments