Package com.artipie.debian.misc
Class GpgClearsign
java.lang.Object
com.artipie.debian.misc.GpgClearsign
Gpg signature, ain functionality of this class was copy-pasted from
https://github.com/bcgit/bc-java/blob/master/pg/src/main/java/org/bouncycastle/openpgp/examples/ClearSignedFileProcessor.java.
- Since:
- 0.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Signs content with GPG clearsign signature and returns the signature.byte[]
signedContent
(byte[] key, String pass) Signs content with GPG clearsign signature and returns it along with the signature.
-
Constructor Details
-
GpgClearsign
public GpgClearsign(byte[] content) Ctor.- Parameters:
content
- Bytes content to sign
-
-
Method Details
-
signedContent
Signs content with GPG clearsign signature and returns it along with the signature.- Parameters:
key
- Private key bytespass
- Password- Returns:
- File, signed with gpg
- Throws:
ArtipieIOException
- On IO errorsArtipieException
- On problems with GPG
-
signature
Signs content with GPG clearsign signature and returns the signature.- Parameters:
key
- Private key bytespass
- Password- Returns:
- File, signed with gpg
- Throws:
ArtipieIOException
- On IO errorsArtipieException
- On problems with GPG
-