generate single key

This commit is contained in:
Ashley Hughes
2014-01-31 11:44:10 +00:00
parent fa0bd5edb4
commit 617f117e23
2 changed files with 9 additions and 21 deletions

View File

@@ -116,6 +116,8 @@ public class PgpKeyOperation {
* @throws PgpGeneralException
* @throws InvalidAlgorithmParameterException
*/
// TODO: key flags?
public PGPSecretKey createKey(int algorithmChoice, int keySize, String passPhrase,
boolean isMasterKey) throws NoSuchAlgorithmException, PGPException, NoSuchProviderException,
PgpGeneralException, InvalidAlgorithmParameterException {