package at.gv.egiz.pdfas.api.xmldsig;

import java.util.List;

import at.gv.egiz.pdfas.api.commons.Constants;
import at.gv.egiz.pdfas.api.commons.SignatureInformation;

/**
 * The result of a reconstructXMLDsig call.<br/>
 * This is just a wrapper for a list of {@link ExtendedSignatureInformation}s
 * 
 * 
 * @author exthex
 */
public class ReconstructXMLDsigResult {

   private List extendedSignatures;
   
   private String device;
   
   /**
    * 
    * @param extendedSignatureInfos
    * @param signatureDevice
    */
   public ReconstructXMLDsigResult(List extendedSignatureInfos, String signatureDevice) {
      this.extendedSignatures = extendedSignatureInfos;
      this.device = signatureDevice;
   }

   /**
    * Get the signature device that was used to create this result.
    * 
    * @return {@link Constants#SIGNATURE_DEVICE_MOA} or {@link Constants#SIGNATURE_DEVICE_BKU}
    */
   public String getDevice() {
      return device;
   }
   
   /**
    * Returns the list of found signatures.
    * 
    * @return Returns a list of {@link ExtendedSignatureInformation} objects representing all
    *         found signatures + {@link XMLDsigData}.
    * @see SignatureInformation
    */
   public List getExtendedSignatures() {
      return this.extendedSignatures;
   }
   
}