lib/oci/auth/session_key_supplier.rb
def key_pair
        @refresh_lock.lock
        private_key = @private_key
        @refresh_lock.unlock

        { 'private_key': private_key, 'public_key': private_key.public_key }
      end
# Retrieves a public key and private key
# @return [Hash] A 2 element hash, where the key 'private_key' retrieves the private key and the public key can be retrieved by using the key 'public_key'
Retrieves a public key and private key
Retrieves a public key and private key
def key_pair
        @refresh_lock.lock
        private_key = @private_key
        @refresh_lock.unlock
        { 'private_key': private_key, 'public_key': private_key.public_key }
      end
def key_pair @refresh_lock . lock private_key = @private_key @refresh_lock . unlock { 'private_key' : private_key , 'public_key' : private_key . public_key } end
Retrieves a public key and private key
Retrieves a public key and private key
A 2 element hash, where the key 'private_key' retrieves the private key and the public key can be retrieved by using the key 'public_key'
A 2 element hash where the key ' private_key ' retrieves the private key and the public key can be retrieved by using the key ' public_key '
Hash