diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/commandline/CommandlineConnectorChooser.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/commandline/CommandlineConnectorChooser.java b/src/main/java/at/gv/egiz/pdfas/commandline/CommandlineConnectorChooser.java index 2bc6a58..7a8283e 100644 --- a/src/main/java/at/gv/egiz/pdfas/commandline/CommandlineConnectorChooser.java +++ b/src/main/java/at/gv/egiz/pdfas/commandline/CommandlineConnectorChooser.java @@ -50,8 +50,12 @@ public class CommandlineConnectorChooser if (connectorType.equals(MOA))
{
// TODO MOA detached signing is not allowed at the commandline
- log.warn("Detached MOA is not supported on the commandline. -> choosing Base64 temporarily.");
- return ConnectorFactory.ENVELOPING_BASE64_MOA_CONNECTOR;
+
+ // TR: wurde erweitert um detached MOA-Signaturen
+ // log.warn("Detached MOA is not supported on the commandline. -> choosing Base64 temporarily.");
+ // return ConnectorFactory.ENVELOPING_BASE64_MOA_CONNECTOR;
+
+ return ConnectorFactory.DETACHED_LOCREF_MOA_CONNECTOR;
}
throw new ConnectorException(300, "Unknown connector type '" + connectorType + "' specified.");
@@ -158,9 +162,10 @@ public class CommandlineConnectorChooser {
log.debug("sig_app is MOA ==> DetachedMOAConnector"); //$NON-NLS-1$
- String msg = "A Detached signature cannot be verified with the MOA connector (yet)."; //$NON-NLS-1$
- log.error(msg);
- throw new ConnectorException(370, msg);
+// String msg = "A Detached signature cannot be verified with the MOA connector (yet)."; //$NON-NLS-1$
+// log.error(msg);
+// throw new ConnectorException(370, msg);
+ return ConnectorFactory.DETACHED_LOCREF_MOA_CONNECTOR;
}
throw new ConnectorException(310, "Unknown sig_app '" + sig_app + "'."); //$NON-NLS-1$ //$NON-NLS-2$
}
|