diff options
author | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-02-01 15:58:58 +0000 |
---|---|---|
committer | tknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-02-01 15:58:58 +0000 |
commit | 55d1e4bff92d92902d4c7e24927c6d98b536c836 (patch) | |
tree | b6709f31616bd4492a2565d745bdfcb40887d1aa /src/main/java/at/knowcenter | |
parent | 0516022f972d9c0563a7644a172994a79ac4fe9a (diff) | |
download | pdf-as-3-55d1e4bff92d92902d4c7e24927c6d98b536c836.tar.gz pdf-as-3-55d1e4bff92d92902d4c7e24927c6d98b536c836.tar.bz2 pdf-as-3-55d1e4bff92d92902d4c7e24927c6d98b536c836.zip |
Introducing constants for error codes.
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@741 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/knowcenter')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/framework/VerificationFilter.java | 2 | ||||
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/framework/VerificationFilter.java b/src/main/java/at/knowcenter/wag/egov/egiz/framework/VerificationFilter.java index 415aa04..b218062 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/framework/VerificationFilter.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/framework/VerificationFilter.java @@ -252,7 +252,7 @@ public class VerificationFilter {
if (signature_block_detected && !current_block_contains_signature)
{
- throw new PDFDocumentException(316, "Das Dokument wurde nach erfolgter Signierung verändert.");
+ throw new PDFDocumentException(ErrorCode.MODIFIED_AFTER_SIGNATION, "Das Dokument wurde nach erfolgter Signierung verändert.");
}
}
}
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java index 336d7b2..5db7696 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java @@ -195,7 +195,7 @@ public final class ConnectorChooser {
log.debug("sig_kz version is 1.1.0/1.2.0 -> choosing detached (loc ref) connector.");
- //throw new ConnectorException(370, "The MOA detached connector is not suitable for verification.");
+ //throw new ConnectorException(ErrorCode.DETACHED_SIGNATURE_NOT_SUPPORTED, "The MOA detached connector is not suitable for verification.");
// TODO TR: Switch her for SwA or Detached-URL Connector
// the following line is used in connection with LocRef-Connector
// return new DetachedLocRefMOAConnector(profile, loc_ref_url);
@@ -325,7 +325,7 @@ public final class ConnectorChooser String msg = "A Detached signature cannot be verified with the MOA connector (yet)."; //$NON-NLS-1$
log.error(msg);
- throw new ConnectorException(370, msg);
+ throw new ConnectorException(ErrorCode.DETACHED_SIGNATURE_NOT_SUPPORTED, msg);
}
throw new ConnectorException(310, "Unknown sig_app '" + sig_app + "'."); //$NON-NLS-1$ //$NON-NLS-2$
}
|