summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorhsm <hsm@lamia.panaceas.james.local>2016-05-29 03:22:54 (GMT)
committer hsm <hsm@lamia.panaceas.james.local>2016-05-29 03:22:54 (GMT)
commit477ffaa46814005d0c7ac23965adc51b73d7f6a3 (patch)
tree5fda0c57ffc5abd610a51983819d22dfd36b5333
parent32794ee94fcd3c8065163da1f6da41e7ceb87c05 (diff)
downloadopenpgp-api-477ffaa46814005d0c7ac23965adc51b73d7f6a3.zip
openpgp-api-477ffaa46814005d0c7ac23965adc51b73d7f6a3.tar.gz
openpgp-api-477ffaa46814005d0c7ac23965adc51b73d7f6a3.tar.bz2
Add SSH_AUTH method
-rw-r--r--openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java b/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java
index 354e766..3edb167 100644
--- a/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java
+++ b/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java
@@ -86,6 +86,19 @@ public class OpenPgpApi {
/**
* Sign text or binary data resulting in a detached signature.
+ * No OutputStream necessary for ACTION_SSH_AUTH
+ * The detached signature is returned separately in RESULT_DETACHED_SIGNATURE.
+ *
+ * required extras:
+ * long EXTRA_SIGN_KEY_ID (key id of signing key)
+ *
+ * returned extras:
+ * byte[] RESULT_DETACHED_SIGNATURE
+ */
+ public static final String ACTION_SSH_AUTH = "org.openintents.openpgp.action.SSH_AUTH";
+
+ /**
+ * Sign text or binary data resulting in a detached signature.
* No OutputStream necessary for ACTION_DETACHED_SIGN (No magic pre-processing like in ACTION_CLEARTEXT_SIGN)!
* The detached signature is returned separately in RESULT_DETACHED_SIGNATURE.
*
@@ -228,8 +241,10 @@ public class OpenPgpApi {
// OpenPGP Radix-64, 33 percent overhead compared to binary, see http://tools.ietf.org/html/rfc4880#page-53)
public static final String EXTRA_REQUEST_ASCII_ARMOR = "ascii_armor";
- // ACTION_DETACHED_SIGN
+ // ACTION_DETACHED_SIGN, SSH_AUTH
public static final String RESULT_DETACHED_SIGNATURE = "detached_signature";
+
+ // ACTION_DETACHED_SIGN
public static final String RESULT_SIGNATURE_MICALG = "signature_micalg";
// ENCRYPT, SIGN_AND_ENCRYPT