aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-11-06 16:00:59 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-11-06 16:00:59 +0100
commit602849f69efbca27672a79da10e52c999ee43c5c (patch)
tree1804f65269b2c76140fe94c7cbe049c6e973eba3 /pdf-as-lib
parent3e58643529da9a1db8ec55bcd64922c2fe1f00f5 (diff)
downloadpdf-as-4-602849f69efbca27672a79da10e52c999ee43c5c.tar.gz
pdf-as-4-602849f69efbca27672a79da10e52c999ee43c5c.tar.bz2
pdf-as-4-602849f69efbca27672a79da10e52c999ee43c5c.zip
Check JCE Unlimited Policy
Diffstat (limited to 'pdf-as-lib')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java
index c1861928..d47b05fa 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java
@@ -35,12 +35,14 @@ import java.io.OutputStream;
import java.lang.management.ManagementFactory;
import java.lang.management.OperatingSystemMXBean;
import java.lang.management.RuntimeMXBean;
+import java.lang.reflect.Field;
import java.security.Provider;
import java.security.Security;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import javax.activation.DataSource;
+import javax.crypto.Cipher;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -139,6 +141,14 @@ public class PdfAsFactory implements IConfigurationConstants {
teeInformation("+ JAVA VM Name: " + runtimeBean.getVmName());
teeInformation("+ JAVA VM Version: " + runtimeBean.getVmVersion());
teeInformation("+ JAVA VM Vendor: " + runtimeBean.getVmVendor());
+ teeInformation("+ AES Max allowed Key Length: "
+ + Cipher.getMaxAllowedKeyLength("AES"));
+ teeInformation("+ RSA Max allowed Key Length: "
+ + Cipher.getMaxAllowedKeyLength("RSA"));
+ teeInformation("+ EC Max allowed Key Length: "
+ + Cipher.getMaxAllowedKeyLength("EC"));
+ teeInformation("+ DSA Max allowed Key Length: "
+ + Cipher.getMaxAllowedKeyLength("DSA"));
} catch (Throwable e) {
teeInformation("+ Failed to show runtime informations");
}
@@ -146,9 +156,9 @@ public class PdfAsFactory implements IConfigurationConstants {
private static void showSecProviderInfo() {
try {
- teeInformation("+ IAIK-JCE Version: " + IAIK.getVersionInfo());
- teeInformation("+ ECCelerate Version: "
- + ECCelerate.getInstance().getVersion());
+ teeInformation("+ IAIK-JCE Version: " + IAIK.getVersionInfo());
+ teeInformation("+ ECCelerate Version: "
+ + ECCelerate.getInstance().getVersion());
} catch (Throwable e) {
teeInformation("+ Failed to show security provider informations");
}