Changeset 1f92232 for core


Ignore:
Timestamp:
Aug 26, 2018 1:50:40 PM (21 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e64ad7c
Parents:
db54edc
Message:

Findbugs all over

Location:
core/java/src/net/i2p/crypto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/crypto/KeyStoreUtil.java

    rdb54edc r1f92232  
    4545public final class KeyStoreUtil {
    4646       
    47     public static boolean _blacklistLogged;
     47    private static boolean _blacklistLogged;
    4848
    4949    public static final String DEFAULT_KEYSTORE_PASSWORD = "changeit";
     
    13321332        String pw = args[3];
    13331333        boolean ok = createKeys(ksf, DEFAULT_KEYSTORE_PASSWORD, alias, "test cname", "test ou",
    1334                                 //DEFAULT_KEY_VALID_DAYS, "EdDSA", 256, pw);
    1335                                 DEFAULT_KEY_VALID_DAYS, "ElGamal", 2048, pw);
     1334                                DEFAULT_KEY_VALID_DAYS, "EdDSA", 256, pw);
     1335                                //DEFAULT_KEY_VALID_DAYS, "ElGamal", 2048, pw);
    13361336        System.out.println("genkey ok? " + ok);
    13371337    }
  • core/java/src/net/i2p/crypto/TrustedUpdate.java

    rdb54edc r1f92232  
    830830     */
    831831    public String verifyAndGetSigner(File signedFile) {
    832         for (SigningPublicKey signingPublicKey : _trustedKeys.keySet()) {
     832        for (Map.Entry<SigningPublicKey, String> e : _trustedKeys.entrySet()) {
     833            SigningPublicKey signingPublicKey = e.getKey();
    833834            boolean isValidSignature = verify(signedFile, signingPublicKey);
    834835            if (isValidSignature)
    835                 return _trustedKeys.get(signingPublicKey);
     836                return e.getValue();
    836837        }
    837838        return null;
Note: See TracChangeset for help on using the changeset viewer.