aboutsummaryrefslogtreecommitdiff
path: root/id.server/src/at/gv/egovernment/moa/id/auth/validator/InfoboxValidator.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/validator/InfoboxValidator.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/validator/InfoboxValidator.java')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/auth/validator/InfoboxValidator.java42
1 files changed, 2 insertions, 40 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/validator/InfoboxValidator.java b/id.server/src/at/gv/egovernment/moa/id/auth/validator/InfoboxValidator.java
index e17e03a20..2f14eb3c9 100644
--- a/id.server/src/at/gv/egovernment/moa/id/auth/validator/InfoboxValidator.java
+++ b/id.server/src/at/gv/egovernment/moa/id/auth/validator/InfoboxValidator.java
@@ -1,5 +1,6 @@
package at.gv.egovernment.moa.id.auth.validator;
+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.ExtendedSAMLAttribute;
@@ -8,13 +9,6 @@ import at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute;
* An implementing class has to validate the content of the InfoboxReadResponse
* according to the type specific rules and guidelines of the underlying
* application.
- * If validation succeeds, the class may provide an array of
- * {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute
- * ExtendedSAMLAttributes}. Each of these SAML-Attributes will be either appended to the
- * final SAML-Assertion passed to the online application or to the AUTH-Block,
- * or to both.
- * <br>
- * If validation fails the implementing class has to provide a short error message.
*/
public interface InfoboxValidator {
@@ -23,15 +17,6 @@ public interface InfoboxValidator {
* The method validates the content of the passed <code>infoboxReadResponse</code>
* according to the type specific rules and guidelines of the underlying
* application.
- * <br>
- * The method returns <code>true</code> if validation succeeds. In that case
- * method {@link #getExtendedSamlAttributes()} may provide an array of
- * {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute
- * ExtendedSAMLAttributes} that should be appended to the final SAML-Assertion or the
- * AUTH-Block or to both.
- * <br>
- * The method returns <code>false</code> if validation fails. In that case
- * method {@link #getErrorMessage()} has to provide a short error description.
*
* @param params {@link at.gv.egovernment.moa.id.auth.data.InfoboxValidatorParams
* Parameters} needed by the validator.
@@ -42,30 +27,7 @@ public interface InfoboxValidator {
* @throws ValidateException If an error occurs on validating the
* InfoboxReadResponse.
*/
- public boolean validate (InfoboxValidatorParams params)
+ public InfoboxValidationResult validate (InfoboxValidatorParams params)
throws ValidateException;
-
- /**
- * Returns an array of {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute
- * ExtendedSAMLAttributes} that should be added to the SAML-Assertion
- * provided to the online application.
- * The SAML-Attributes in that array will be added to the final
- * SAML-Assertion, the AUTH-Block, or both, exactly in the order as they are arranged
- * in the array this method returns.
- *
- * @return An array of {@link at.gv.egovernment.moa.id.auth.data.ExtendedSAMLAttribute
- * ExtendedSAMLAttributes} that should be added to the SAML-Assertion
- * provided to the online application, the AUTH-Block, or both. If no attributes should
- * be added this array maybe <code>null</code> or empty.
- */
- public ExtendedSAMLAttribute[] getExtendedSamlAttributes();
-
- /**
- * A short error description that should be displayed by MOA-ID if
- * validation of the InfoBoxReadResponse fails.
- *
- * @return An short error message if validation fails.
- */
- public String getErrorMessage();
}