Class SignatureInfo

java.lang.Object
org.eclipse.ease.sign.SignatureInfo

public class SignatureInfo
extends Object
  • Constructor Details

    • SignatureInfo

      public SignatureInfo​(String signature, String provider, String messageDigestAlgo, String[] certificates, String contentOnly)
      Public constructor to store variables related to signature of script. It is preferable to provide the required values.
      Parameters:
      signature - provide signature in String format
      provider - name provider of signature
      messageDigestAlgo - name message-digest i.e. hash algorithm used for signature
      certificates - provide certificates in String array
      contentOnly - provide contents excluding signature
    • SignatureInfo

      public SignatureInfo​(String signature, String provider, String messageDigestAlgo, String[] certificates)
      Public constructor to store variables related to signature of script. It is preferable to provide the required values.
      Parameters:
      signature - provide signature in String format
      provider - name provider of signature
      messageDigestAlgo - name message-digest i.e. hash algorithm used for signature
      certificates - provide certificates in String array
    • SignatureInfo

      public SignatureInfo​(String signature, String provider, String messageDigestAlgo)
      Public constructor to store variables related to signature of script. It is preferable to provide the required values.
      Parameters:
      signature - provide signature in String format
      provider - name provider of signature
      messageDigestAlgo - name message-digest i.e. hash algorithm used for signature
  • Method Details

    • getSignature

      public String getSignature()
      Returns:
      the signature
    • getProvider

      public String getProvider()
      Returns:
      the provider
    • getMessageDigestAlgo

      public String getMessageDigestAlgo()
      Returns:
      the messageDigestAlgo
    • getCertificateChain

      public String[] getCertificateChain()
      Returns:
      the certificate chain in Base64 String array
    • getContentOnly

      public String getContentOnly()
      Returns:
      the contentOnly
    • setContentOnly

      public void setContentOnly​(String fileContent)
      Set content corresponding to signature explicitly. Helpful when content and signature are not all in single file.
      Parameters:
      fileContent - provide file content corresponding to the stored signature