Exemple #1
0
        internal override ListInfoCsdResponse ListCsd()
        {
            ListInfoCsdResponseHandler handler = new ListInfoCsdResponseHandler();

            try
            {
                new Validation(Url, User, Password, Token).ValidateHeaderParameters();
                HttpWebRequest request = this.RequestListCsd();
                return(handler.GetResponse(request));
            }
            catch (Exception e)
            {
                return(handler.HandleException(e));
            }
        }
        internal override ListInfoCsdResponse ListCsdByRfc(string rfc)
        {
            ListInfoCsdResponseHandler handler = new ListInfoCsdResponseHandler();

            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, proxy));
            }
            catch (Exception e)
            {
                return(handler.HandleException(e));
            }
        }
Exemple #3
0
        internal override ListInfoCsdResponse ListCsdByType(string type)
        {
            ListInfoCsdResponseHandler handler = new ListInfoCsdResponseHandler();

            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/type/" + type, proxy));
            }
            catch (Exception e)
            {
                return(handler.HandleException(e));
            }
        }