Class: GlobalSign::UrlVerificationForIssue::Response

Inherits:
Response
  • Object
show all
Defined in:
lib/global_sign/url_verification_for_issue/response.rb

Defined Under Namespace

Modules: XPath

Constant Summary

Constants inherited from Response

Response::SUCCESS_CODE, Response::WARNING_CODE

Instance Method Summary collapse

Methods inherited from Response

#error?, #error_code, #error_field, #error_message, #initialize, #success?, #warning?, #xpath_errors, #xpath_result

Constructor Details

This class inherits a constructor from GlobalSign::Response

Instance Method Details

#paramsObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/global_sign/url_verification_for_issue/response.rb', line 14

def params
  @params ||= {
    certificate_info: {
      certificate_status: certificate_info.at('CertificateStatus').text,
      start_date:         certificate_info.at('StartDate').text,
      end_date:           certificate_info.at('EndDate').text,
      common_name:        certificate_info.at('CommonName').text,
      subject_name:       certificate_info.at('SubjectName').text,
    },
    fulfillment: {
      ca_certificates: ca_certificates_list,
      server_certificate: {
        x509_cert:  server_certificate.at('X509Cert').text,
        pkcs7_cert: server_certificate.at('PKCS7Cert').text,
      }
    }
  }
end

#response_headerObject



10
11
12
# File 'lib/global_sign/url_verification_for_issue/response.rb', line 10

def response_header
  :OrderResponseHeader
end