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 Readygenerate()Generate the OpenPGP key and return it encoded as anInputStream.GenerateKeynoArmor()Disable ASCII armor encoding.GenerateKeyuserId(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.MissingArgSOPGPException.UnsupportedAsymmetricAlgoIOException
-
-