lib/cerner/oauth1a/access_token_agent.rb
def retrieve_keys(keys_version, ignore_cache: false)
        raise ArgumentError, 'keys_version is nil' unless keys_version

        if @keys_cache && !ignore_cache
          cache_entry = @keys_cache.get('cerner-oauth1a/keys', keys_version)
          return cache_entry.value if cache_entry
        end

        request = retrieve_keys_prepare_request(keys_version)
        response = http_client.request(request)
        keys = retrieve_keys_handle_response(keys_version, response)
        @keys_cache&.put('cerner-oauth1a/keys', keys_version, Cache::KeysEntry.new(keys, Cache::TWENTY_FOUR_HOURS))
        keys
      end
# Public: Retrieves the service provider keys from the configured Access Token service endpoint
# (@access_token_url). This method will invoke #retrieve to acquire an AccessToken to request
# the keys.
#
# keys_version - The version identifier of the keys to retrieve. This corresponds to the
#                KeysVersion parameter of the oauth_token.
# keywords     - The keyword arguments:
#               :ignore_cache - A flag for indicating that the cache should be ignored and a
#                               new Access Token should be retrieved.
#
# Return a Keys instance upon success.
#
# Raises ArgumentError if keys_version is nil.
# Raises OAuthError for any functional errors returned within an HTTP 200 response.
# Raises StandardError sub-classes for any issues interacting with the service, such as networking issues.
Retrieves the service provider keys from the configured Access Token service endpoint
(@access_token_url). This method will invoke #retrieve to acquire an AccessToken to request
the keys.

The version identifier of the keys to retrieve. This corresponds to the
KeysVersion parameter of the oauth_token.
keywords     - The keyword arguments:
:ignore_cache - A flag for indicating that the cache should be ignored and a
new Access Token should be retrieved.

Return a Keys instance upon success.


Retrieves the service provider keys from the configured Access Token service endpoint ( @access_token_url ) . This method will invoke #retrieve to acquire an AccessToken to request the keys . The version identifier of the keys to retrieve . This corresponds to the KeysVersion parameter of the oauth_token . keywords - The keyword arguments : : ignore_cache - A flag for indicating that the cache should be ignored and a new Access Token should be retrieved . Return a Keys instance upon success .
def retrieve_keys(keys_version, ignore_cache: false)
        raise ArgumentError, 'keys_version is nil' unless keys_version
        if @keys_cache && !ignore_cache
          cache_entry = @keys_cache.get('cerner-oauth1a/keys', keys_version)
          return cache_entry.value if cache_entry
        end
        request = retrieve_keys_prepare_request(keys_version)
        response = http_client.request(request)
        keys = retrieve_keys_handle_response(keys_version, response)
        @keys_cache&.put('cerner-oauth1a/keys', keys_version, Cache::KeysEntry.new(keys, Cache::TWENTY_FOUR_HOURS))
        keys
      end
def retrieve_keys ( keys_version , ignore_cache : false ) raise ArgumentError , 'keys_version is nil' unless keys_version if @keys_cache && ! ignore_cache cache_entry = @keys_cache . get ( 'cerner-oauth1a/keys' , keys_version ) return cache_entry . value if cache_entry end request = retrieve_keys_prepare_request ( keys_version ) response = http_client . request ( request ) keys = retrieve_keys_handle_response ( keys_version , response ) @keys_cache &. put ( 'cerner-oauth1a/keys' , keys_version , Cache :: KeysEntry . new ( keys , Cache :: TWENTY_FOUR_HOURS ) ) keys end
Public: Retrieves the service provider keys from the configured Access Token service endpoint
(@access_token_url).
Public : Retrieves the service provider keys from the configured Access Token service endpoint ( @access_token_url ) .
keys_version
ignore_cache