lib/jamf/api/connection/token.rb
# refresh a token using a password, return a result
# @param pw[String] the password to use
# @return [JamfTimestamp] the new expiration
refresh a token using a password, return a result
refresh a token using a password return a result
def refresh_with_passwd(pw, success, failure)
        init_from_pw(pw)
        @last_refresh_result = success
        expires
      rescue => e
        @last_refresh_result = failure
        raise e, "#{e}. Status: :#{failure}"
      end
def refresh_with_passwd ( pw , success , failure ) init_from_pw ( pw ) @last_refresh_result = success expires rescue => e @last_refresh_result = failure raise e , "#{e}. Status: :#{failure}" end
refresh a token using a password, return a result
refresh a token using a password return a result
the new expiration
the new expiration
JamfTimestamp
pw
the password to use
the password to use
success
failure