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 Readygenerate()Generate the OpenPGP key and return it encoded as anInputStream.GenerateKeynoArmor()Disable ASCII armor encoding.GenerateKeyuserId(String userId)Adds a user-id.
-
-
-
Constructor Detail
-
GenerateKeyImpl
public GenerateKeyImpl()
-
-
Method Detail
-
noArmor
public GenerateKey noArmor()
Description copied from interface:GenerateKeyDisable ASCII armor encoding.- Specified by:
noArmorin interfaceGenerateKey- Returns:
- builder instance
-
userId
public GenerateKey userId(String userId)
Description copied from interface:GenerateKeyAdds a user-id.- Specified by:
userIdin interfaceGenerateKey- Parameters:
userId- user-id- Returns:
- builder instance
-
generate
public Ready generate() throws SOPGPException.MissingArg, SOPGPException.UnsupportedAsymmetricAlgo
Description copied from interface:GenerateKeyGenerate the OpenPGP key and return it encoded as anInputStream.- Specified by:
generatein interfaceGenerateKey- Returns:
- key
- Throws:
SOPGPException.MissingArgSOPGPException.UnsupportedAsymmetricAlgo
-
-