Skip to content

Commit

Permalink
a few formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
justinludwig committed Aug 31, 2017
1 parent cc7f5f9 commit 08eff83
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/main/java/org/c02e/jpgpj/Subkey.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@
import java.util.Iterator;
import java.util.List;
import java.util.regex.Pattern;

import org.bouncycastle.openpgp.*;
import org.bouncycastle.openpgp.PGPException;
import org.bouncycastle.openpgp.PGPKeyFlags;
import org.bouncycastle.openpgp.PGPPrivateKey;
import org.bouncycastle.openpgp.PGPPublicKey;
import org.bouncycastle.openpgp.PGPSecretKey;
import org.bouncycastle.openpgp.PGPSignature;
import org.bouncycastle.openpgp.PGPSignatureSubpacketVector;
import org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor;
import org.bouncycastle.openpgp.operator.bc.BcPBESecretKeyDecryptorBuilder;
import org.bouncycastle.openpgp.operator.bc.BcPGPDigestCalculatorProvider;
Expand Down Expand Up @@ -245,11 +250,11 @@ public int getUsageFlags() throws PGPException {
Iterator<PGPSignature> signatures = publicKey.getSignatures();
while (signatures.hasNext()) {
PGPSignature signature = signatures.next();
PGPSignatureSubpacketVector hashedSubPackets = signature.getHashedSubPackets();

if(hashedSubPackets != null) {
PGPSignatureSubpacketVector hashedSubPackets =
signature.getHashedSubPackets();

if (hashedSubPackets != null)
flags |= hashedSubPackets.getKeyFlags();
}
}
return flags;
}
Expand Down

0 comments on commit 08eff83

Please sign in to comment.