lib/oci/auth/session_key_supplier.rb
def refresh
        @refresh_lock.lock
        @private_key = OpenSSL::PKey::RSA.generate(@key_size, PUBLIC_EXPONENT)
      ensure
        @refresh_lock.unlock if @refresh_lock.locked? && @refresh_lock.owned?
      end
# Generates a new public and private key
Generates a new public and private key
Generates a new public and private key
def refresh
        @refresh_lock.lock
        @private_key = OpenSSL::PKey::RSA.generate(@key_size, PUBLIC_EXPONENT)
      ensure
        @refresh_lock.unlock if @refresh_lock.locked? && @refresh_lock.owned?
      end
def refresh @refresh_lock . lock @private_key = OpenSSL :: PKey :: RSA . generate ( @key_size , PUBLIC_EXPONENT ) ensure @refresh_lock . unlock if @refresh_lock . locked? && @refresh_lock . owned? end
Generates a new public and private key
Generates a new public and private key