Class: CyberSource::Utilities::CaptureContext::PublicKeyFetcher
- Inherits:
-
Object
- Object
- CyberSource::Utilities::CaptureContext::PublicKeyFetcher
- Defined in:
- lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb
Overview
PublicKeyFetcher Class
Fetches public keys from CyberSource Flex V2 API for the given key ID (kid) and run environment.
Constant Summary collapse
- DEFAULT_TIMEOUT =
Default timeout for HTTP requests (in seconds)
30- HTTP_REQUEST_CONFIG =
HTTP request configuration
{ headers: { 'Accept' => 'application/json' }, timeout: DEFAULT_TIMEOUT }.freeze
Class Method Summary collapse
-
.fetch_public_key(kid, run_environment) ⇒ Hash
Fetches the public key for the given key ID (kid) from the specified run environment.
Class Method Details
.fetch_public_key(kid, run_environment) ⇒ Hash
Fetches the public key for the given key ID (kid) from the specified run environment.
43 44 45 46 |
# File 'lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb', line 43 def fetch_public_key(kid, run_environment) validate_parameters(kid, run_environment) fetch_from_api(kid, run_environment) end |