Changeset 31945 in osm for applications/editors
- Timestamp:
- 2016-01-05T13:32:53+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/KeyTreeTableModel.java
r30744 r31945 138 138 public String getOsmCertificate() { 139 139 String cert = ""; 140 for (NotationData nd : s.getHashedSubPackets().getNotationDataOccur ences()){140 for (NotationData nd : s.getHashedSubPackets().getNotationDataOccurrences()){ 141 141 if (nd.getNotationName().equals("trustosm@openstreetmap.org")) { 142 142 cert += nd.getNotationValue(); -
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/util/TrustGPG.java
r30829 r31945 67 67 import org.bouncycastle.openpgp.PGPSignatureSubpacketVector; 68 68 import org.bouncycastle.openpgp.PGPUtil; 69 import org.bouncycastle.openpgp.bc.BcPGPPublicKeyRingCollection; 70 import org.bouncycastle.openpgp.bc.BcPGPSecretKeyRingCollection; 69 71 import org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor; 70 72 import org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor; … … 286 288 //pubIn = new FileInputStream("/tmp/secring.gpg"); 287 289 //secIn = new FileInputStream("/tmp/pubring.gpg"); 288 pgpSec = new PGPSecretKeyRingCollection(PGPUtil.getDecoderStream(pubIn));289 pgpPub = new PGPPublicKeyRingCollection(PGPUtil.getDecoderStream(secIn));290 pgpSec = new BcPGPSecretKeyRingCollection(PGPUtil.getDecoderStream(pubIn)); 291 pgpPub = new BcPGPPublicKeyRingCollection(PGPUtil.getDecoderStream(secIn)); 290 292 } catch (FileNotFoundException e) { 291 293 System.err.println("No gpg files found in "+Main.pref.getPluginsDirectory().getPath() + "/trustosm/gnupg/secring.gpg"); … … 462 464 * @return found tolerance as double or 0 if no Tolerance is given 463 465 */ 464 465 466 public static double searchTolerance(PGPSignature sig) { 466 467 /** Take the first NotationData packet that seems to have Tolerance information */ 467 for (NotationData nd : sig.getHashedSubPackets().getNotationDataOccur ences()){468 for (NotationData nd : sig.getHashedSubPackets().getNotationDataOccurrences()){ 468 469 if (nd.getNotationName().equals(TrustGPG.NOTATION_DATA_KEY)) { 469 470 String notation = nd.getNotationValue();
Note:
See TracChangeset
for help on using the changeset viewer.