/// <summary> /// Initializes a new instance of the Certificate class. /// </summary> /// <param name="thumbprint">The X.509 thumbprint of the certificate. /// This is a sequence of up to 40 hex digits (it may include spaces /// but these are removed).</param> /// <param name="thumbprintAlgorithm">The algorithm used to derive the /// thumbprint. This must be sha1.</param> /// <param name="url">The URL of the certificate.</param> /// <param name="state">The current state of the certificate.</param> /// <param name="stateTransitionTime">The time at which the /// certificate entered its current state.</param> /// <param name="previousState">The previous state of the /// certificate.</param> /// <param name="previousStateTransitionTime">The time at which the /// certificate entered its previous state.</param> /// <param name="publicData">The public part of the certificate as a /// base-64 encoded .cer file.</param> /// <param name="deleteCertificateError">The error that occurred on /// the last attempt to delete this certificate.</param> public Certificate(string thumbprint = default(string), string thumbprintAlgorithm = default(string), string url = default(string), CertificateState?state = default(CertificateState?), System.DateTime?stateTransitionTime = default(System.DateTime?), CertificateState?previousState = default(CertificateState?), System.DateTime?previousStateTransitionTime = default(System.DateTime?), string publicData = default(string), DeleteCertificateError deleteCertificateError = default(DeleteCertificateError)) { Thumbprint = thumbprint; ThumbprintAlgorithm = thumbprintAlgorithm; Url = url; State = state; StateTransitionTime = stateTransitionTime; PreviousState = previousState; PreviousStateTransitionTime = previousStateTransitionTime; PublicData = publicData; DeleteCertificateError = deleteCertificateError; }
internal DeleteCertificateError(Models.DeleteCertificateError protocolObject) { this.code = protocolObject.Code; this.message = protocolObject.Message; this.values = NameValuePair.ConvertFromProtocolCollectionReadOnly(protocolObject.Values); }