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;
}
public static List<KeyFlag> fromInteger(int bitmask) {
public static List<KeyFlag> fromBitmask(int bitmask) {
List<KeyFlag> flags = new ArrayList<>();
for (KeyFlag f : KeyFlag.values()) {
if ((bitmask & f.flag) != 0) {

View File

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