mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-03-03 02:42:00 -05:00
Rename setter methods for PgpDecryptVerify.Builder
This commit is contained in:
parent
324971e448
commit
1f7c61a331
@ -118,18 +118,18 @@ public class PgpDecryptVerify {
|
|||||||
this.mOutStream = outStream;
|
this.mOutStream = outStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder progressable(Progressable progressable) {
|
public Builder setProgressable(Progressable progressable) {
|
||||||
this.mProgressable = progressable;
|
mProgressable = progressable;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder allowSymmetricDecryption(boolean allowSymmetricDecryption) {
|
public Builder setAllowSymmetricDecryption(boolean allowSymmetricDecryption) {
|
||||||
this.mAllowSymmetricDecryption = allowSymmetricDecryption;
|
mAllowSymmetricDecryption = allowSymmetricDecryption;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder passphrase(String passphrase) {
|
public Builder setPassphrase(String passphrase) {
|
||||||
this.mPassphrase = passphrase;
|
mPassphrase = passphrase;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ public class PgpDecryptVerify {
|
|||||||
* @param allowedKeyIds
|
* @param allowedKeyIds
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Builder allowedKeyIds(Set<Long> allowedKeyIds) {
|
public Builder setAllowedKeyIds(Set<Long> allowedKeyIds) {
|
||||||
this.mAllowedKeyIds = allowedKeyIds;
|
this.mAllowedKeyIds = allowedKeyIds;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -337,10 +337,10 @@ public class OpenPgpService extends RemoteService {
|
|||||||
},
|
},
|
||||||
inputData, os
|
inputData, os
|
||||||
);
|
);
|
||||||
builder.allowSymmetricDecryption(false) // no support for symmetric encryption
|
builder.setAllowSymmetricDecryption(false) // no support for symmetric encryption
|
||||||
.allowedKeyIds(allowedKeyIds) // allow only private keys associated with
|
.setAllowedKeyIds(allowedKeyIds) // allow only private keys associated with
|
||||||
// accounts of this app
|
// accounts of this app
|
||||||
.passphrase(passphrase);
|
.setPassphrase(passphrase);
|
||||||
|
|
||||||
PgpDecryptVerifyResult decryptVerifyResult;
|
PgpDecryptVerifyResult decryptVerifyResult;
|
||||||
try {
|
try {
|
||||||
|
@ -457,10 +457,10 @@ public class KeychainIntentService extends IntentService
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
inputData, outStream);
|
inputData, outStream);
|
||||||
builder.progressable(this);
|
builder.setProgressable(this);
|
||||||
|
|
||||||
builder.allowSymmetricDecryption(true)
|
builder.setAllowSymmetricDecryption(true)
|
||||||
.passphrase(passphrase);
|
.setPassphrase(passphrase);
|
||||||
|
|
||||||
PgpDecryptVerifyResult decryptVerifyResult = builder.build().execute();
|
PgpDecryptVerifyResult decryptVerifyResult = builder.build().execute();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user