diff options
author | Tim Bray <timbray@gmail.com> | 2014-04-29 15:03:37 -0700 |
---|---|---|
committer | Tim Bray <timbray@gmail.com> | 2014-04-29 15:04:05 -0700 |
commit | b5fb311c6152af36254a803aabe726ed8b03a447 (patch) | |
tree | 4101f9a97658bb432e4d0146adb1257efffd659d | |
parent | ea1032dbfdbb42f39ef37af510e38b64f9854d5a (diff) | |
download | open-keychain-b5fb311c6152af36254a803aabe726ed8b03a447.tar.gz open-keychain-b5fb311c6152af36254a803aabe726ed8b03a447.tar.bz2 open-keychain-b5fb311c6152af36254a803aabe726ed8b03a447.zip |
keybase ID stuff
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/KeybaseKeyServer.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/KeybaseKeyServer.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/KeybaseKeyServer.java index c5f97f0dd..ae4c44e09 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/KeybaseKeyServer.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/KeybaseKeyServer.java @@ -99,19 +99,24 @@ public class KeybaseKeyServer extends KeyServer { final ImportKeysListEntry entry = new ImportKeysListEntry(); + // TODO: Fix; have suggested keybase provide this value to avoid search-time crypto calls entry.setBitStrength(4096); entry.setAlgorithm("RSA"); entry.setKeyIdHex("0x" + key_fingerprint); + entry.setRevoked(false); + // ctime final long creationDate = JWalk.getLong(match, "them", "public_keys", "primary", "ctime"); final GregorianCalendar tmpGreg = new GregorianCalendar(TimeZone.getTimeZone("UTC")); tmpGreg.setTimeInMillis(creationDate * 1000); entry.setDate(tmpGreg.getTime()); - entry.setRevoked(false); + + // key bits mKeyCache.put(keybaseID, JWalk.getString(match,"them", "public_keys", "primary", "bundle")); - String name = JWalk.getString(match, "them", "profile", "full_name"); + + // String displayName = JWalk.getString(match, "them", "profile", "full_name"); ArrayList<String> userIds = new ArrayList<String>(); - name = "keybase.io/" + keybaseID + " " + name; + String name = "keybase.io/" + keybaseID + " <" + keybaseID + "@keybase.io>"; userIds.add(name); entry.setUserIds(userIds); entry.setPrimaryUserId(name); |