S/MIME sign

This commit is contained in:
M66B
2019-12-03 11:31:41 +01:00
parent e8f710d03f
commit 7cab6d8a21
20 changed files with 357 additions and 77 deletions

View File

@@ -4392,11 +4392,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
return null;
} else {
// Get alias
String alias = args.getString("alias");
if (alias == null)
throw new IllegalArgumentException("Key alias missing");
// Check private key
// Get private key
PrivateKey privkey = KeyChain.getPrivateKey(context, alias);
if (privkey == null)
throw new IllegalArgumentException("Private key missing");