Klasse AbstractSignatureType

java.lang.Object
org.gradle.plugins.signing.type.AbstractSignatureType
Alle implementierten Schnittstellen:
SignatureType
Bekannte direkte Unterklassen:
ArmoredSignatureType, BinarySignatureType

public abstract class AbstractSignatureType extends Object implements SignatureType
Convenience base class for SignatureType implementations.
  • Konstruktordetails

    • AbstractSignatureType

      public AbstractSignatureType()
  • Methodendetails

    • sign

      public File sign(Signatory signatory, File toSign)
      Beschreibung aus Schnittstelle kopiert: SignatureType
      Signs the given file and returns the file where the signature has been written to.
      Angegeben von:
      sign in Schnittstelle SignatureType
      Parameter:
      signatory - The signatory
      toSign - The file to be signed
      Gibt zurück:
      The file where the signature has been written to
    • sign

      public void sign(Signatory signatory, InputStream toSign, OutputStream destination)
      Beschreibung aus Schnittstelle kopiert: SignatureType
      Signs the data from the given InputStream and stores the signature in the given OutputStream.
      Angegeben von:
      sign in Schnittstelle SignatureType
      Parameter:
      signatory - The signatory
      toSign - The source of the data to be signed
      destination - Where the signature will be written to
    • fileFor

      public File fileFor(File toSign)
      Beschreibung aus Schnittstelle kopiert: SignatureType
      Calculates the file where to store the signature of the given file to be signed.
      Angegeben von:
      fileFor in Schnittstelle SignatureType
      Parameter:
      toSign - The file to be signed
      Gibt zurück:
      The file where to write the signature of the given file to be signed
    • combinedExtension

      public String combinedExtension(File toSign)
      Beschreibung aus Schnittstelle kopiert: SignatureType
      Combines the extension of the given file with the expected signature extension.
      Angegeben von:
      combinedExtension in Schnittstelle SignatureType
      Parameter:
      toSign - The file to be signed
      Gibt zurück:
      The combined file extension (without the leading dot)
      Siehe auch: