Make asciiArmor a parameter, extend advanced app settings

This commit is contained in:
Dominik Schürmann
2013-09-09 12:59:53 +02:00
parent c4bf7c5d11
commit 5dc693c64c
14 changed files with 348 additions and 127 deletions

View File

@@ -24,7 +24,6 @@ import org.sufficientlysecure.keychain.Id;
public class AppSettings {
private String packageName;
private long keyId = Id.key.none;
private boolean asciiArmor;
private int encryptionAlgorithm;
private int hashAlgorithm;
private int compression;
@@ -37,10 +36,9 @@ public class AppSettings {
super();
this.packageName = packageName;
// defaults:
this.asciiArmor = true;
this.encryptionAlgorithm = PGPEncryptedData.AES_128; // AES-128
this.hashAlgorithm = HashAlgorithmTags.SHA512; // SHA-512
this.compression = Id.choice.compression.zlib; // zlib
this.encryptionAlgorithm = PGPEncryptedData.AES_128;
this.hashAlgorithm = HashAlgorithmTags.SHA256;
this.compression = Id.choice.compression.zlib;
}
public String getPackageName() {
@@ -59,14 +57,6 @@ public class AppSettings {
this.keyId = scretKeyId;
}
public boolean isAsciiArmor() {
return asciiArmor;
}
public void setAsciiArmor(boolean asciiArmor) {
this.asciiArmor = asciiArmor;
}
public int getEncryptionAlgorithm() {
return encryptionAlgorithm;
}