@Named public class PGPSigner extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
setKeyInfo(PGPKeyInfo keyInfo)
Setup key info which will be used for signing
|
void |
sign(InputStream inputStream,
Path outputPath)
Generate PGP signature for a given input stream.
|
public void setKeyInfo(PGPKeyInfo keyInfo)
keyInfo - private key infopublic void sign(InputStream inputStream, Path outputPath)
inputStream - stream with data to calculate signatureoutputPath - a destination of signaturePGPSignerException - if some IO problemsCopyright © 2020–2021 Simplify4U. All rights reserved.