Package sop.operation
Interface GenerateKey
-
- All Known Implementing Classes:
GenerateKeyImpl
public interface GenerateKey
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
noArmor
GenerateKey noArmor()
Disable ASCII armor encoding.- Returns:
- builder instance
-
userId
GenerateKey userId(String userId)
Adds a user-id.- Parameters:
userId
- user-id- Returns:
- builder instance
-
generate
Ready generate() throws SOPGPException.MissingArg, SOPGPException.UnsupportedAsymmetricAlgo, IOException
Generate the OpenPGP key and return it encoded as anInputStream
.- Returns:
- key
- Throws:
SOPGPException.MissingArg
SOPGPException.UnsupportedAsymmetricAlgo
IOException
-
-