aboutsummaryrefslogtreecommitdiff
path: root/id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
diff options
context:
space:
mode:
authorharald.bratko <harald.bratko@d688527b-c9ab-4aba-bd8d-4036d912da1d>2007-08-01 17:20:44 +0000
committerharald.bratko <harald.bratko@d688527b-c9ab-4aba-bd8d-4036d912da1d>2007-08-01 17:20:44 +0000
commitba01e78bf13485ebb4058dd0322c752854f0922b (patch)
tree7fc6fba1bcd0a2a8be79867c07b9f2497ecf1bd4 /id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
parent1e5a8af6e37a3145ad219199c84992279835eabc (diff)
downloadmoa-id-spss-ba01e78bf13485ebb4058dd0322c752854f0922b.tar.gz
moa-id-spss-ba01e78bf13485ebb4058dd0322c752854f0922b.tar.bz2
moa-id-spss-ba01e78bf13485ebb4058dd0322c752854f0922b.zip
Changed for compability mode.
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@892 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java b/id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
index a79cba4d7..5f4ec2d29 100644
--- a/id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
+++ b/id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
@@ -40,6 +40,7 @@ import at.gv.egovernment.moa.id.auth.data.AuthenticationSession;
import at.gv.egovernment.moa.id.auth.data.CreateXMLSignatureResponse;
import at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute;
import at.gv.egovernment.moa.id.auth.data.IdentityLink;
+import at.gv.egovernment.moa.id.auth.data.InfoboxValidationResult;
import at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams;
import at.gv.egovernment.moa.id.auth.data.VerifyXMLSignatureResponse;
import at.gv.egovernment.moa.id.auth.invoke.SignatureVerificationInvoker;
@@ -589,25 +590,25 @@ public class AuthenticationServer implements MOAIDAuthConstants {
InfoboxValidatorParamsBuilder.buildInfoboxValidatorParams(
session, verifyInfoboxParameter, infoboxTokenList, hideStammzahl);
// now validate the infobox
- boolean infoboxValid = false;
+ InfoboxValidationResult infoboxValidationResult = null;
try {
- infoboxValid = infoboxValidator.validate(infoboxValidatorParams);
+ infoboxValidationResult = infoboxValidator.validate(infoboxValidatorParams);
} catch (ValidateException e) {
Logger.error("Error validating " + identifier + " infobox:" + e.getMessage());
throw new ValidateException(
"validator.44", new Object[] {friendlyName});
}
- if (!infoboxValid) {
+ if (!infoboxValidationResult.isValid()) {
Logger.info("Validation of " + identifier + " infobox failed.");
throw new ValidateException(
- "validator.40", new Object[] {friendlyName, infoboxValidator.getErrorMessage()});
+ "validator.40", new Object[] {friendlyName, infoboxValidationResult.getErrorMessage()});
}
Logger.info(identifier + " infobox successfully validated.");
// get the SAML attributes to be appended to the AUTHBlock or to the final
// SAML Assertion
- ExtendedSAMLAttribute[] extendedSAMLAttributes = infoboxValidator.getExtendedSamlAttributes();
+ ExtendedSAMLAttribute[] extendedSAMLAttributes = infoboxValidationResult.getExtendedSamlAttributes();
if (extendedSAMLAttributes != null) {
int length = extendedSAMLAttributes.length;
for (int i=0; i<length; i++) {