public FetchRequestResultApiModel( string requestId, string applicationId, Types.CertificateRequestState state, string certificateGroupId, string certificateTypeId, byte[] signedCertificate, string privateKeyFormat, byte[] privateKey, string authorityId) { this.RequestId = requestId; this.ApplicationId = applicationId; this.State = (CertificateRequestState)state; this.CertificateGroupId = certificateGroupId; this.CertificateTypeId = certificateTypeId; this.SignedCertificate = (signedCertificate != null) ? Convert.ToBase64String(signedCertificate) : null; this.PrivateKeyFormat = privateKeyFormat; this.PrivateKey = (privateKey != null) ? Convert.ToBase64String(privateKey) : null; this.AuthorityId = authorityId; }
public CertificateRequestRecordApiModel( string requestId, string applicationId, Types.CertificateRequestState state, string certificateGroupId, string certificateTypeId, bool signingRequest, string subjectName, IList <string> domainNames, string privateKeyFormat) { this.RequestId = requestId; this.ApplicationId = applicationId; this.State = (CertificateRequestState)state; this.CertificateGroupId = certificateGroupId; this.CertificateTypeId = certificateTypeId; this.SigningRequest = signingRequest; this.SubjectName = subjectName; this.DomainNames = domainNames; this.PrivateKeyFormat = privateKeyFormat; }