@FunctionalInterface public interface JkSigner extends JkFileSigner
Modifier and Type | Method and Description |
---|---|
void |
sign(java.io.InputStream streamToSign,
java.io.OutputStream signatureString)
Signs the data in the specified input stream and writes the signature to the output stream.
|
default void |
sign(java.nio.file.Path fileToSgn,
java.nio.file.Path targetSignatureFile)
Signs the specified file and writes the signature to the target signature file.
|
sign
void sign(java.io.InputStream streamToSign, java.io.OutputStream signatureString)
streamToSign
- the input stream containing the data to be signedsignatureString
- the output stream to write the signature string todefault void sign(java.nio.file.Path fileToSgn, java.nio.file.Path targetSignatureFile)
JkFileSigner
sign
in interface JkFileSigner
fileToSgn
- the path of the file to be signedtargetSignatureFile
- the path of the signature file to be createdJkFileSigner.sign(Path, Path)