mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-01-08 19:27:57 +01:00
Rename KeyFlag.fromInteger -> fromBitmask
This commit is contained in:
parent
8780d5a7b0
commit
cbb9b00b88
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue