The type of signature.
Type | Name and description |
---|---|
String |
combinedExtension(File toSign) Combines the extension of the given file with the expected signature extension. |
File |
fileFor(File toSign) Calculates the file where to store the signature of the given file to be signed. |
String |
getExtension() The file extension (without the leading dot) associated to this type of signature. |
File |
sign(Signatory signatory, File toSign) Signs the given file and returns the file where the signature has been written to. |
void |
sign(Signatory signatory, InputStream toSign, OutputStream destination) Signs the data from the given InputStream and stores the signature in the given OutputStream. |
Combines the extension of the given file with the expected signature extension.
toSign
- The file to be signedCalculates the file where to store the signature of the given file to be signed.
toSign
- The file to be signedThe file extension (without the leading dot) associated to this type of signature.
Signs the given file and returns the file where the signature has been written to.
signatory
- The signatorytoSign
- The file to be signedSigns the data from the given InputStream and stores the signature in the given OutputStream.
signatory
- The signatorytoSign
- The source of the data to be signeddestination
- Where the signature will be written to