1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-16 16:44:50 +02:00

Rename KeyFlag.fromInteger -> fromBitmask

This commit is contained in:
Paul Schaub 2020-01-09 20:49:32 +01:00
parent 8780d5a7b0
commit cbb9b00b88
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ public enum KeyFlag {
return flag; return flag;
} }
public static List<KeyFlag> fromInteger(int bitmask) { public static List<KeyFlag> fromBitmask(int bitmask) {
List<KeyFlag> flags = new ArrayList<>(); List<KeyFlag> flags = new ArrayList<>();
for (KeyFlag f : KeyFlag.values()) { for (KeyFlag f : KeyFlag.values()) {
if ((bitmask & f.flag) != 0) { if ((bitmask & f.flag) != 0) {

View file

@ -255,7 +255,7 @@ public class BCUtil {
} }
PGPSignatureSubpacketVector hashed = s.getHashedSubPackets(); PGPSignatureSubpacketVector hashed = s.getHashedSubPackets();
if (KeyFlag.fromInteger(hashed.getKeyFlags()).contains(KeyFlag.SIGN_DATA)) { if (KeyFlag.fromBitmask(hashed.getKeyFlags()).contains(KeyFlag.SIGN_DATA)) {
signingKey = true; signingKey = true;
break; break;
} }