/// <summary>
 /// Initializes a new instance of the <see cref="CertificateInfoDTO" /> class.
 /// </summary>
 /// <param name="signAlgorithm">signAlgorithm.</param>
 /// <param name="keyBitLength">keyBitLength.</param>
 /// <param name="serialNumber">serialNumber.</param>
 /// <param name="thumbprintAlgorithm">thumbprintAlgorithm.</param>
 /// <param name="thumbprint">thumbprint.</param>
 /// <param name="trustLevel">trustLevel.</param>
 /// <param name="keyUsageList">keyUsageList.</param>
 /// <param name="extendedKeyUsageList">extendedKeyUsageList.</param>
 /// <param name="validNotBeforeUtc">validNotBeforeUtc.</param>
 /// <param name="validNotAfterUtc">validNotAfterUtc.</param>
 /// <param name="subjectKeyIdentifier">subjectKeyIdentifier.</param>
 /// <param name="subjectAlternativeName">subjectAlternativeName.</param>
 /// <param name="subjectUniqueId">subjectUniqueId.</param>
 /// <param name="subjectInfoList">subjectInfoList.</param>
 /// <param name="version">version.</param>
 /// <param name="issuerUniqueId">issuerUniqueId.</param>
 /// <param name="issuerAlternativeName">issuerAlternativeName.</param>
 /// <param name="issuerInfoList">issuerInfoList.</param>
 /// <param name="authorityInfoAccessOcsp">authorityInfoAccessOcsp.</param>
 /// <param name="crlDistributionPoints">crlDistributionPoints.</param>
 /// <param name="validationMessageList">validationMessageList.</param>
 /// <param name="certificatePolicies">certificatePolicies.</param>
 /// <param name="qcStatementList">qcStatementList.</param>
 /// <param name="isTrusted">isTrusted.</param>
 /// <param name="trustValidationMessageList">trustValidationMessageList.</param>
 /// <param name="isValid">isValid.</param>
 /// <param name="certificateB64">certificateB64.</param>
 /// <param name="verifyCondition">verifyCondition.</param>
 public CertificateInfoDTO(IdValuePairDTO signAlgorithm = default(IdValuePairDTO), int?keyBitLength = default(int?), string serialNumber = default(string), IdValuePairDTO thumbprintAlgorithm = default(IdValuePairDTO), string thumbprint = default(string), string trustLevel = default(string), List <int?> keyUsageList = default(List <int?>), List <IdValuePairDTO> extendedKeyUsageList = default(List <IdValuePairDTO>), DateTime?validNotBeforeUtc = default(DateTime?), DateTime?validNotAfterUtc = default(DateTime?), string subjectKeyIdentifier = default(string), string subjectAlternativeName = default(string), string subjectUniqueId = default(string), List <IdValuePairDTO> subjectInfoList = default(List <IdValuePairDTO>), int?version = default(int?), string issuerUniqueId = default(string), string issuerAlternativeName = default(string), List <IdValuePairDTO> issuerInfoList = default(List <IdValuePairDTO>), List <string> authorityInfoAccessOcsp = default(List <string>), List <string> crlDistributionPoints = default(List <string>), List <ValidationMessageDTO> validationMessageList = default(List <ValidationMessageDTO>), List <CertificatePolicyInfoDTO> certificatePolicies = default(List <CertificatePolicyInfoDTO>), List <SignatureAttributeDTO> qcStatementList = default(List <SignatureAttributeDTO>), bool?isTrusted = default(bool?), List <ValidationMessageDTO> trustValidationMessageList = default(List <ValidationMessageDTO>), bool?isValid = default(bool?), string certificateB64 = default(string), VerifyConditionDTO verifyCondition = default(VerifyConditionDTO))
 {
     this.SignAlgorithm          = signAlgorithm;
     this.KeyBitLength           = keyBitLength;
     this.SerialNumber           = serialNumber;
     this.ThumbprintAlgorithm    = thumbprintAlgorithm;
     this.Thumbprint             = thumbprint;
     this.TrustLevel             = trustLevel;
     this.KeyUsageList           = keyUsageList;
     this.ExtendedKeyUsageList   = extendedKeyUsageList;
     this.ValidNotBeforeUtc      = validNotBeforeUtc;
     this.ValidNotAfterUtc       = validNotAfterUtc;
     this.SubjectKeyIdentifier   = subjectKeyIdentifier;
     this.SubjectAlternativeName = subjectAlternativeName;
     this.SubjectUniqueId        = subjectUniqueId;
     this.SubjectInfoList        = subjectInfoList;
     this.Version                    = version;
     this.IssuerUniqueId             = issuerUniqueId;
     this.IssuerAlternativeName      = issuerAlternativeName;
     this.IssuerInfoList             = issuerInfoList;
     this.AuthorityInfoAccessOcsp    = authorityInfoAccessOcsp;
     this.CrlDistributionPoints      = crlDistributionPoints;
     this.ValidationMessageList      = validationMessageList;
     this.CertificatePolicies        = certificatePolicies;
     this.QcStatementList            = qcStatementList;
     this.IsTrusted                  = isTrusted;
     this.TrustValidationMessageList = trustValidationMessageList;
     this.IsValid                    = isValid;
     this.CertificateB64             = certificateB64;
     this.VerifyCondition            = verifyCondition;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimestampInfoDTO" /> class.
 /// </summary>
 /// <param name="timestampSignatureInfo">timestampSignatureInfo.</param>
 /// <param name="isValid">isValid.</param>
 /// <param name="timestampValidationMessageList">timestampValidationMessageList.</param>
 /// <param name="timestampTimeUtc">timestampTimeUtc.</param>
 /// <param name="accurancySeconds">accurancySeconds.</param>
 /// <param name="hashAlgorithm">hashAlgorithm.</param>
 /// <param name="messageImprintDigest">messageImprintDigest.</param>
 /// <param name="nonce">nonce.</param>
 /// <param name="policy">policy.</param>
 /// <param name="serialNumber">serialNumber.</param>
 /// <param name="tsa">tsa.</param>
 public TimestampInfoDTO(SignatureInfoDTO timestampSignatureInfo = default(SignatureInfoDTO), bool?isValid = default(bool?), List <ValidationMessageDTO> timestampValidationMessageList = default(List <ValidationMessageDTO>), DateTime?timestampTimeUtc = default(DateTime?), string accurancySeconds = default(string), IdValuePairDTO hashAlgorithm = default(IdValuePairDTO), string messageImprintDigest = default(string), string nonce = default(string), string policy = default(string), string serialNumber = default(string), string tsa = default(string))
 {
     this.TimestampSignatureInfo = timestampSignatureInfo;
     this.IsValid = isValid;
     this.TimestampValidationMessageList = timestampValidationMessageList;
     this.TimestampTimeUtc     = timestampTimeUtc;
     this.AccurancySeconds     = accurancySeconds;
     this.HashAlgorithm        = hashAlgorithm;
     this.MessageImprintDigest = messageImprintDigest;
     this.Nonce        = nonce;
     this.Policy       = policy;
     this.SerialNumber = serialNumber;
     this.Tsa          = tsa;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SignatureInfoDTO" /> class.
 /// </summary>
 /// <param name="signatureStandard">signatureStandard.</param>
 /// <param name="certificateInfo">certificateInfo.</param>
 /// <param name="timestampInfo">timestampInfo.</param>
 /// <param name="counterSignatures">counterSignatures.</param>
 /// <param name="contentType">contentType.</param>
 /// <param name="digestAlgorithm">digestAlgorithm.</param>
 /// <param name="signAlgorithm">signAlgorithm.</param>
 /// <param name="signatureHex">signatureHex.</param>
 /// <param name="isValid">isValid.</param>
 /// <param name="signatureIntegrity">signatureIntegrity.</param>
 /// <param name="isCounterSign">isCounterSign.</param>
 /// <param name="signatureValidationMessageList">signatureValidationMessageList.</param>
 /// <param name="signatureTimeUtc">signatureTimeUtc.</param>
 /// <param name="signedAttributeList">signedAttributeList.</param>
 /// <param name="unsignedAttributeList">unsignedAttributeList.</param>
 public SignatureInfoDTO(string signatureStandard = default(string), CertificateInfoDTO certificateInfo = default(CertificateInfoDTO), TimestampInfoDTO timestampInfo = default(TimestampInfoDTO), List <SignatureInfoDTO> counterSignatures = default(List <SignatureInfoDTO>), IdValuePairDTO contentType = default(IdValuePairDTO), IdValuePairDTO digestAlgorithm = default(IdValuePairDTO), IdValuePairDTO signAlgorithm = default(IdValuePairDTO), string signatureHex = default(string), bool?isValid = default(bool?), bool?signatureIntegrity = default(bool?), bool?isCounterSign = default(bool?), List <ValidationMessageDTO> signatureValidationMessageList = default(List <ValidationMessageDTO>), DateTime?signatureTimeUtc = default(DateTime?), List <SignatureAttributeDTO> signedAttributeList = default(List <SignatureAttributeDTO>), List <SignatureAttributeDTO> unsignedAttributeList = default(List <SignatureAttributeDTO>))
 {
     this.SignatureStandard              = signatureStandard;
     this.CertificateInfo                = certificateInfo;
     this.TimestampInfo                  = timestampInfo;
     this.CounterSignatures              = counterSignatures;
     this.ContentType                    = contentType;
     this.DigestAlgorithm                = digestAlgorithm;
     this.SignAlgorithm                  = signAlgorithm;
     this.SignatureHex                   = signatureHex;
     this.IsValid                        = isValid;
     this.SignatureIntegrity             = signatureIntegrity;
     this.IsCounterSign                  = isCounterSign;
     this.SignatureValidationMessageList = signatureValidationMessageList;
     this.SignatureTimeUtc               = signatureTimeUtc;
     this.SignedAttributeList            = signedAttributeList;
     this.UnsignedAttributeList          = unsignedAttributeList;
 }