Clarify use of methods in PgpKeyHelper

This commit is contained in:
Dominik Schürmann
2014-04-11 21:40:12 +02:00
parent 12b8282d9b
commit 2069f20f50
3 changed files with 6 additions and 6 deletions

View File

@@ -833,7 +833,7 @@ public class KeychainIntentService extends IntentService
Log.e(Constants.TAG, "key not found!", e);
// TODO: throw exception here!
}
PGPSecretKey certificationKey = PgpKeyHelper.getCertificationKey(secretKeyRing);
PGPSecretKey certificationKey = PgpKeyHelper.getFirstCertificationSubkey(secretKeyRing);
publicKey = keyOperation.certifyKey(certificationKey, publicKey,
userIds, signaturePassphrase);
publicRing = PGPPublicKeyRing.insertPublicKey(publicRing, publicKey);