Package org.pgpainless.sop
Class GenerateKeyImpl
- java.lang.Object
-
- org.pgpainless.sop.GenerateKeyImpl
-
- All Implemented Interfaces:
GenerateKey
public class GenerateKeyImpl extends Object implements GenerateKey
-
-
Constructor Summary
Constructors Constructor Description GenerateKeyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ready
generate()
Generate the OpenPGP key and return it encoded as anInputStream
.GenerateKey
noArmor()
Disable ASCII armor encoding.GenerateKey
userId(String userId)
Adds a user-id.
-
-
-
Constructor Detail
-
GenerateKeyImpl
public GenerateKeyImpl()
-
-
Method Detail
-
noArmor
public GenerateKey noArmor()
Description copied from interface:GenerateKey
Disable ASCII armor encoding.- Specified by:
noArmor
in interfaceGenerateKey
- Returns:
- builder instance
-
userId
public GenerateKey userId(String userId)
Description copied from interface:GenerateKey
Adds a user-id.- Specified by:
userId
in interfaceGenerateKey
- Parameters:
userId
- user-id- Returns:
- builder instance
-
generate
public Ready generate() throws SOPGPException.MissingArg, SOPGPException.UnsupportedAsymmetricAlgo
Description copied from interface:GenerateKey
Generate the OpenPGP key and return it encoded as anInputStream
.- Specified by:
generate
in interfaceGenerateKey
- Returns:
- key
- Throws:
SOPGPException.MissingArg
SOPGPException.UnsupportedAsymmetricAlgo
-
-