From d9b7f8f0ed2befcd0bbfa80c84c6a89e190ff481 Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Wed, 7 Oct 2015 06:17:42 +0200 Subject: Add keystore signing --- .../src/main/java/at/asit/pdfover/signator/BKUs.java | 3 +++ .../src/main/java/at/asit/pdfover/signator/SigningState.java | 12 ++++++++++++ 2 files changed, 15 insertions(+) (limited to 'pdf-over-signator/src') diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/BKUs.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/BKUs.java index 774508a6..8d936d3c 100644 --- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/BKUs.java +++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/BKUs.java @@ -26,6 +26,9 @@ public enum BKUs { /** Mobile BKU */ MOBILE, + /** KeyStore */ + KS, + /** No BKU */ NONE } diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SigningState.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SigningState.java index f624e5b4..1ca365b4 100644 --- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SigningState.java +++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SigningState.java @@ -49,4 +49,16 @@ public interface SigningState { * @param connector the BKU connector */ public void setBKUConnector(BkuSlConnector connector); + + /** + * Set the KeyStore signer + * @param file KeyStore filename + * @param alias KeyStore alias + * @param kspassword KeyStore password + * @param keypassword KeyStore private key password + * @param type KeyStore type + * @throws SignatureException + */ + public void setKSSigner(String file, String alias, String kspassword, + String keypassword, String type) throws SignatureException; } -- cgit v1.2.3