package at.gv.egovernment.moa.spss.api.impl; import java.io.InputStream; import java.util.Date; import at.gv.egovernment.moa.spss.api.cmsverify.CMSDataObject; import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureRequest; /** * Default implementation of VerifyCMSSignatureRequest. * * @author Fatemeh Philippi * @version $Id$ */ public class VerifyCMSSignatureRequestImpl implements VerifyCMSSignatureRequest { /** The indexes of the signatories whose signature should be verified. */ private int[] signatories; /** The profile ID of trusted certificates. */ private String trustProfileId; /** The data object necessary for signature verification. */ private CMSDataObject dataObject; /** The CMS signature to verify. */ private InputStream cmsSignature; /** The date for which to verify the signature. */ private Date dateTime; /** * Sets the indexes of the signatories whose signature should be verified. * * @param signatories The indexes of the signatories whose signature should be * verified. */ public void setSignatories(int[] signatories) { this.signatories = signatories; } public int[] getSignatories() { return signatories; } /** * Sets the date for which to verify the signature. * * @param dateTime The date for which to verify the signature. */ public void setDateTime(Date dateTime) { this.dateTime = dateTime; } public Date getDateTime() { return dateTime; } /** * Sets the CMS signature to verify. * @param signature The CMS signature to verify. */ public void setCMSSignature(InputStream signature) { this.cmsSignature = signature; } public InputStream getCMSSignature() { return cmsSignature; } /** * Sets the data object necessary for signature verification. * @param dataObject The data object necessary for signature verification. */ public void setDataObject(CMSDataObject dataObject) { this.dataObject = dataObject; } public CMSDataObject getDataObject() { return dataObject; } /** * Sets the profile ID of trusted certificates. * @param trustProfileId The profile ID of trusted certificates. */ public void setTrustProfileId(String trustProfileId) { this.trustProfileId = trustProfileId; } public String getTrustProfileId() { return trustProfileId; } }