SignatureTypeArmoredSignatureType, BinarySignatureTypepublic abstract class AbstractSignatureType extends java.lang.Object implements SignatureType
SignatureType implementations.| Constructor | Description | 
|---|---|
| AbstractSignatureType() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| java.lang.String | combinedExtension(java.io.File toSign) | Combines the extension of the given file with the expected signature extension. | 
| java.io.File | fileFor(java.io.File toSign) | Calculates the file where to store the signature of the given file to be signed. | 
| java.io.File | sign(Signatory signatory,
    java.io.File toSign) | Signs the given file and returns the file where the signature has been written to. | 
| void | sign(Signatory signatory,
    java.io.InputStream toSign,
    java.io.OutputStream destination) | Signs the data from the given InputStream and stores the signature in the given OutputStream. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExtensionpublic java.io.File sign(Signatory signatory, java.io.File toSign)
SignatureTypesign in interface SignatureTypesignatory - The signatorytoSign - The file to be signedpublic void sign(Signatory signatory, java.io.InputStream toSign, java.io.OutputStream destination)
SignatureTypesign in interface SignatureTypesignatory - The signatorytoSign - The source of the data to be signeddestination - Where the signature will be written topublic java.io.File fileFor(java.io.File toSign)
SignatureTypefileFor in interface SignatureTypetoSign - The file to be signedpublic java.lang.String combinedExtension(java.io.File toSign)
SignatureTypecombinedExtension in interface SignatureTypetoSign - The file to be signedSignatureType.getExtension()