mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Add TODO notes to OX code
This commit is contained in:
parent
27164f4c06
commit
b36b19d864
2 changed files with 2 additions and 0 deletions
|
@ -157,6 +157,7 @@ public abstract class AbstractOpenPgpKeyStore implements OpenPgpKeyStore {
|
|||
public void importSecretKey(BareJid owner, PGPSecretKeyRing secretKeys)
|
||||
throws IOException, PGPException, MissingUserIdOnKeyException {
|
||||
|
||||
// TODO: Avoid 'new' use instance method.
|
||||
if (!new BareJidUserId.SecRingSelectionStrategy().accept(owner, secretKeys)) {
|
||||
throw new MissingUserIdOnKeyException(owner, new OpenPgpV4Fingerprint(secretKeys));
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ public class FileBasedOpenPgpStore extends AbstractOpenPgpStore {
|
|||
}
|
||||
|
||||
public static File getContactsPath(File basePath, BareJid jid) {
|
||||
// TODO: This is not filesystem agnostic, the jid should be base32 encoded.
|
||||
return new File(basePath, Objects.requireNonNull(jid.toString()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue