aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote
diff options
context:
space:
mode:
authorThialfihar <thi@thialfihar.org>2014-04-29 18:57:43 +0200
committerThialfihar <thi@thialfihar.org>2014-04-29 18:57:43 +0200
commit324971e4484b2d227e261993977837ef63a87dc3 (patch)
treee97080817d431d34285df4bea81caf95e97fb181 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote
parent9e6bf2abbb1395798c7b6957b193d738940a2b57 (diff)
downloadopen-keychain-324971e4484b2d227e261993977837ef63a87dc3.tar.gz
open-keychain-324971e4484b2d227e261993977837ef63a87dc3.tar.bz2
open-keychain-324971e4484b2d227e261993977837ef63a87dc3.zip
Rename setter methods for PgpSignEncrypt.Builder
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java
index 6e0179aaa..6adabf18a 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/remote/OpenPgpService.java
@@ -170,14 +170,14 @@ public class OpenPgpService extends RemoteService {
new ProviderHelper(getContext()),
PgpHelper.getFullVersion(getContext()),
inputData, os);
- builder.enableAsciiArmorOutput(asciiArmor)
- .signatureHashAlgorithm(accSettings.getHashAlgorithm())
- .signatureForceV3(false)
- .signatureMasterKeyId(accSettings.getKeyId())
- .signaturePassphrase(passphrase);
+ builder.setEnableAsciiArmorOutput(asciiArmor)
+ .setSignatureHashAlgorithm(accSettings.getHashAlgorithm())
+ .setSignatureForceV3(false)
+ .setSignatureMasterKeyId(accSettings.getKeyId())
+ .setSignaturePassphrase(passphrase);
// TODO: currently always assume cleartext input, no sign-only of binary currently!
- builder.cleartextInput(true);
+ builder.setCleartextInput(true);
try {
builder.build().execute();
@@ -254,10 +254,10 @@ public class OpenPgpService extends RemoteService {
new ProviderHelper(getContext()),
PgpHelper.getFullVersion(getContext()),
inputData, os);
- builder.enableAsciiArmorOutput(asciiArmor)
- .compressionId(accSettings.getCompression())
- .symmetricEncryptionAlgorithm(accSettings.getEncryptionAlgorithm())
- .encryptionMasterKeyIds(keyIds);
+ builder.setEnableAsciiArmorOutput(asciiArmor)
+ .setCompressionId(accSettings.getCompression())
+ .setSymmetricEncryptionAlgorithm(accSettings.getEncryptionAlgorithm())
+ .setEncryptionMasterKeyIds(keyIds);
if (sign) {
String passphrase;
@@ -274,13 +274,13 @@ public class OpenPgpService extends RemoteService {
}
// sign and encrypt
- builder.signatureHashAlgorithm(accSettings.getHashAlgorithm())
- .signatureForceV3(false)
- .signatureMasterKeyId(accSettings.getKeyId())
- .signaturePassphrase(passphrase);
+ builder.setSignatureHashAlgorithm(accSettings.getHashAlgorithm())
+ .setSignatureForceV3(false)
+ .setSignatureMasterKeyId(accSettings.getKeyId())
+ .setSignaturePassphrase(passphrase);
} else {
// encrypt only
- builder.signatureMasterKeyId(Constants.key.none);
+ builder.setSignatureMasterKeyId(Constants.key.none);
}
try {