diff options
author | Tobias Kellner <imcybot@gmail.com> | 2015-10-07 06:17:42 +0200 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2015-10-08 17:56:11 +0200 |
commit | d9b7f8f0ed2befcd0bbfa80c84c6a89e190ff481 (patch) | |
tree | dc4eaa95debfd8c139a9ead03cf5e002b944e1e8 /pdf-over-signator/src/main | |
parent | 7776caf451bc69219c1455234378c919710595b4 (diff) | |
download | pdf-over-d9b7f8f0ed2befcd0bbfa80c84c6a89e190ff481.tar.gz pdf-over-d9b7f8f0ed2befcd0bbfa80c84c6a89e190ff481.tar.bz2 pdf-over-d9b7f8f0ed2befcd0bbfa80c84c6a89e190ff481.zip |
Add keystore signing
Diffstat (limited to 'pdf-over-signator/src/main')
-rw-r--r-- | pdf-over-signator/src/main/java/at/asit/pdfover/signator/BKUs.java | 3 | ||||
-rw-r--r-- | pdf-over-signator/src/main/java/at/asit/pdfover/signator/SigningState.java | 12 |
2 files changed, 15 insertions, 0 deletions
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; } |