Exemple #1
0
        public ListEntry(string fileName, CertificateAuthorityEntry entry, CACertificate caCertificate)
        {
            FileName = fileName;
              this.entry = entry;

              this.certificate = this.entry.Request.Certificate;
              this.request = this.entry.RequestValue(caCertificate);

              if (this.entry.Response != null)
              {
            this.response = this.entry.Response.Value;
              }
        }
Exemple #2
0
        public ListEntry(string fileName, CACertificate caCertificate)
        {
            FileName = fileName;
              this.entry = Serializable.Load<CertificateAuthorityEntry>(FileName);

              this.certificate = this.entry.Request.Certificate;
              this.request = this.entry.RequestValue(caCertificate);

              if (this.entry.Response != null)
              {
            this.response = this.entry.Response.Value;
              }
        }
Exemple #3
0
 public void Sign(CACertificate caCertificate, DateTime validFrom, DateTime validUntil)
 {
     this.entry.Sign(caCertificate, validFrom, validUntil);
       this.response = this.entry.Response.Value;
 }
Exemple #4
0
 public void Refuse(CACertificate caCertificate, string reason)
 {
     this.entry.Refuse(caCertificate, reason);
       this.response = this.entry.Response.Value;
 }
 /// <summary>
 /// Refuse signature and create response.
 /// </summary>
 /// <param name="caCertificate">Certificate of the CA.</param>
 /// <param name="reason">Reason for refusing to sign.</param>
 public void Refuse(CACertificate caCertificate, string reason)
 {
     SignatureRequest request = RequestValue(caCertificate);
       SignatureResponse response = new SignatureResponse(Request.Certificate.Id, reason);
       Response = new Signed<SignatureResponse>(response, caCertificate);
 }
 /// <summary>
 /// Signs the certificates and create response
 /// </summary>
 /// <param name="caCertificate">Certificate of the CA.</param>
 /// <param name="validUntil">Signature valid from.</param>
 /// <param name="validUntil">Signature valid until.</param>
 public void Sign(CACertificate caCertificate, DateTime validFrom, DateTime validUntil)
 {
     SignatureRequest request = RequestValue(caCertificate);
       Signature signature = Certificate.AddSignature(caCertificate, validFrom, validUntil);
       SignatureResponse response = new SignatureResponse(Request.Certificate.Id, signature);
       Response = new Signed<SignatureResponse>(response, caCertificate);
 }