Package org.eclipse.ease.sign
Class SignatureInfo
java.lang.Object
org.eclipse.ease.sign.SignatureInfo
public class SignatureInfo extends Object
-
Constructor Summary
Constructors Constructor Description SignatureInfo(String signature, String provider, String messageDigestAlgo)Public constructor to store variables related to signature of script.SignatureInfo(String signature, String provider, String messageDigestAlgo, String[] certificates)Public constructor to store variables related to signature of script.SignatureInfo(String signature, String provider, String messageDigestAlgo, String[] certificates, String contentOnly)Public constructor to store variables related to signature of script. -
Method Summary
Modifier and Type Method Description String[]getCertificateChain()StringgetContentOnly()StringgetMessageDigestAlgo()StringgetProvider()StringgetSignature()voidsetContentOnly(String fileContent)Set content corresponding to signature explicitly.
-
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 formatprovider- name provider of signaturemessageDigestAlgo- name message-digest i.e. hash algorithm used for signaturecertificates- provide certificates in String arraycontentOnly- 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 formatprovider- name provider of signaturemessageDigestAlgo- name message-digest i.e. hash algorithm used for signaturecertificates- provide certificates in String array
-
SignatureInfo
Public constructor to store variables related to signature of script. It is preferable to provide the required values.- Parameters:
signature- provide signature in String formatprovider- name provider of signaturemessageDigestAlgo- name message-digest i.e. hash algorithm used for signature
-
-
Method Details
-
getSignature
- Returns:
- the signature
-
getProvider
- Returns:
- the provider
-
getMessageDigestAlgo
- Returns:
- the messageDigestAlgo
-
getCertificateChain
- Returns:
- the certificate chain in Base64 String array
-
getContentOnly
- Returns:
- the contentOnly
-
setContentOnly
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
-