From cf965538e852c8a34d4d127d9f0751e05204985a Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 30 Jul 2018 15:41:48 +0200 Subject: [PATCH] Update references to XEP-0373 --- .../ox/callback/backup/AskForBackupCodeCallback.java | 5 ++--- .../ox/callback/backup/DisplayBackupCodeCallback.java | 5 ++--- .../jivesoftware/smackx/ox/element/SecretkeyElement.java | 3 +-- .../smackx/ox/util/SecretKeyBackupHelper.java | 9 ++++----- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/callback/backup/AskForBackupCodeCallback.java b/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/callback/backup/AskForBackupCodeCallback.java index 9cc2f9bcf..4a6653012 100644 --- a/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/callback/backup/AskForBackupCodeCallback.java +++ b/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/callback/backup/AskForBackupCodeCallback.java @@ -22,9 +22,8 @@ public interface AskForBackupCodeCallback { * This callback is used to ask the user to provide a backup code. * The backup code must follow the format described in XEP-0373 §5.3 * - * TODO: Update reflink - * @see - * XEP-0373 §5.3 about the format of the backup code + * @see + * XEP-0373 §5.4 Encrypting the Secret Key Backup * * @return backup code provided by the user. */ diff --git a/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/callback/backup/DisplayBackupCodeCallback.java b/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/callback/backup/DisplayBackupCodeCallback.java index 4ae708034..bc41a92bb 100644 --- a/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/callback/backup/DisplayBackupCodeCallback.java +++ b/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/callback/backup/DisplayBackupCodeCallback.java @@ -23,9 +23,8 @@ public interface DisplayBackupCodeCallback { * The client can then go ahead and display the code to the user. * The backup code follows the format described in XEP-0373 §5.3 * - * TODO: Update reflink - * @see - * XEP-0373 §5.3 about the format of the backup code + * @see + * XEP-0373 §5.4 Encrypting the Secret Key Backup * * @param backupCode backup code */ diff --git a/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/element/SecretkeyElement.java b/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/element/SecretkeyElement.java index 8ee890bde..f9da93234 100644 --- a/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/element/SecretkeyElement.java +++ b/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/element/SecretkeyElement.java @@ -25,8 +25,7 @@ import org.jivesoftware.smack.util.XmlStringBuilder; /** * This class represents a secretkey element which contains a users OpenPGP secret key. * - * TODO: Update reflink - * @see + * @see * XEP-0373: §5.2.2 PEP Service Success Response */ public class SecretkeyElement implements ExtensionElement { diff --git a/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/util/SecretKeyBackupHelper.java b/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/util/SecretKeyBackupHelper.java index a6ab4b00b..13fe39a59 100644 --- a/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/util/SecretKeyBackupHelper.java +++ b/smack-openpgp/src/main/java/org/jivesoftware/smackx/ox/util/SecretKeyBackupHelper.java @@ -45,8 +45,8 @@ public class SecretKeyBackupHelper { * Generate a secure backup code. * This code can be used to encrypt a secret key backup and follows the form described in XEP-0373 §5.3. * - * TODO: Update reflink - * @see XEP-0373 §5.3 + * @see + * XEP-0373 §5.4 Encrypting the Secret Key Backup * * @return backup code */ @@ -112,9 +112,8 @@ public class SecretKeyBackupHelper { * Create a {@link SecretkeyElement} which contains the secret keys which are serialized in {@code keys} and is * symmetrically encrypted using the {@code backupCode}. * - * TODO: Update reflink - * @see - * XEP-0373 about secret key backup requirements + * @see + * XEP-0373 §5.4 Encrypting the Secret Key Backup * * @param keys serialized OpenPGP secret keys in transferable key format * @param backupCode passphrase for symmetric encryption