示例#1
0
        internal override InfoCsdResponse InfoCsd(string certificateNumber)
        {
            InfoCsdResponseHandler handler = new InfoCsdResponseHandler();

            try
            {
                new Validation(Url, User, Password, Token).ValidateHeaderParameters();
                HttpWebRequest request = this.RequestInfoCsd(certificateNumber);
                return(handler.GetResponse(request));
            }
            catch (Exception e)
            {
                return(handler.HandleException(e));
            }
        }
示例#2
0
        internal override InfoCsdResponse ActiveCsd(string rfc, string type)
        {
            InfoCsdResponseHandler handler = new InfoCsdResponseHandler();

            try
            {
                new Validation(Url, User, Password, Token).ValidateHeaderParameters();
                HttpWebRequest request = this.RequestActiveCsd(rfc, type);
                return(handler.GetResponse(request));
            }
            catch (Exception e)
            {
                return(handler.HandleException(e));
            }
        }
示例#3
0
        internal override InfoCsdResponse ActiveCsd(string rfc, string type)
        {
            InfoCsdResponseHandler handler = new InfoCsdResponseHandler();

            try
            {
                new Validation(Url, User, Password, Token).ValidateHeaderParameters();
                var headers = GetHeaders();
                var proxy   = RequestHelper.ProxySettings(Proxy, ProxyPort);
                return(handler.GetResponse(Url, headers,
                                           "certificates/rfc/" + rfc + "/" + type, proxy));
            }
            catch (Exception e)
            {
                return(handler.HandleException(e));
            }
        }
示例#4
0
        internal override InfoCsdResponse InfoCsd(string certificateNumber)
        {
            InfoCsdResponseHandler handler = new InfoCsdResponseHandler();

            try
            {
                new Validation(Url, User, Password, Token).ValidateHeaderParameters();
                var headers = GetHeaders();
                var proxy   = Helpers.RequestHelper.ProxySettings(this.Proxy, this.ProxyPort);
                return(handler.GetResponse(this.Url, headers,
                                           "certificates/" + certificateNumber, proxy));
            }
            catch (Exception e)
            {
                return(handler.HandleException(e));
            }
        }