Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 /// <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;
 }
Ejemplo n.º 4
0
 /// <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;
 }
Ejemplo n.º 5
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;
 }
Ejemplo n.º 6
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;
 }