aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl
diff options
context:
space:
mode:
authorbschnalzer <bianca.schnalzer@egiz.gv.at>2017-12-11 14:33:24 +0100
committerbschnalzer <bianca.schnalzer@egiz.gv.at>2017-12-11 14:33:24 +0100
commita9fb8ac7fa73d2908735d8016609e15c954bcbdf (patch)
tree4450a14778e1032444a5e18592b4d4c67f011b74 /pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl
parent38c6ea7e6014f800a87c72f7bf830a7b4397cbf3 (diff)
downloadpdf-as-4-a9fb8ac7fa73d2908735d8016609e15c954bcbdf.tar.gz
pdf-as-4-a9fb8ac7fa73d2908735d8016609e15c954bcbdf.tar.bz2
pdf-as-4-a9fb8ac7fa73d2908735d8016609e15c954bcbdf.zip
ProtectPDF, PDFA
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java1
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderConfiguration.java21
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/placeholder/SignaturePlaceholderData.java3
3 files changed, 9 insertions, 16 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java
index e8cdd955..c19b7b10 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java
@@ -372,6 +372,7 @@ public class PdfAsImpl implements PdfAs, IConfigurationConstants,
logger.info("ByteRange: " + sb.toString());
+
request.setSignatureData(signatureDataExtractor
.getSignatureData());
request.setByteRange(byteRange);
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderConfiguration.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderConfiguration.java
index 6e91e808..b20215fc 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderConfiguration.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderConfiguration.java
@@ -24,27 +24,16 @@
package at.gv.egiz.pdfas.lib.impl.configuration;
import at.gv.egiz.pdfas.common.settings.ISettings;
-import at.gv.egiz.pdfas.common.settings.Profiles;
-import at.gv.egiz.pdfas.common.settings.SignatureProfileSettings;
-import at.gv.egiz.pdfas.lib.api.Configuration;
import at.gv.egiz.pdfas.lib.api.IConfigurationConstants;
-import at.gv.egiz.pdfas.lib.api.PdfAs;
-import at.gv.egiz.pdfas.lib.impl.PdfAsImpl;
-import at.gv.egiz.pdfas.lib.impl.PdfAsParameterImpl;
-import at.gv.egiz.pdfas.lib.impl.placeholder.SignaturePlaceholderData;
-import at.gv.egiz.pdfas.lib.impl.status.OperationStatus;
-import at.gv.egiz.pdfas.lib.settings.Settings;
-import at.gv.egiz.pdfas.lib.util.SignatureUtils;
-import at.gv.egiz.pdfas.lib.api.PdfAs;
-import com.sun.corba.se.spi.orb.Operation;
-
-import java.security.Signature;
-import java.util.Properties;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class PlaceholderConfiguration extends SpecificBaseConfiguration
implements IConfigurationConstants {
+ private static final Logger logger = LoggerFactory.getLogger(PlaceholderConfiguration.class);
+
public PlaceholderConfiguration(ISettings configuration) {
super(configuration);
}
@@ -67,10 +56,12 @@ public class PlaceholderConfiguration extends SpecificBaseConfiguration
*/
public boolean isProfileConfigurationEnabled(String selectedProfileID)
{
+ logger.info("SelectedProfileID in ProfileConfEnabled: "+selectedProfileID);
String profileMatch = SIG_OBJECT+SEPERATOR+selectedProfileID+SEPERATOR+PLACEHOLDER_SEARCH_ENABLED;
if (configuration.hasValue(profileMatch)) {
String value = configuration.getValue(profileMatch);
if (value.equalsIgnoreCase(TRUE)) {
+ logger.info("Configuration has Value: "+value);
return true;
}
}
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/placeholder/SignaturePlaceholderData.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/placeholder/SignaturePlaceholderData.java
index cf0ad149..3dbedee5 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/placeholder/SignaturePlaceholderData.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/placeholder/SignaturePlaceholderData.java
@@ -54,7 +54,8 @@ import at.knowcenter.wag.egov.egiz.pdf.TablePos;
* @author exthex
*
*/
-public class SignaturePlaceholderData {
+public class
+SignaturePlaceholderData {
public static final String ID_KEY = "id";