Show TOC

refreshCertificate( onsuccess, onerror ) methodLocate this document in the navigation structure

Calling this method to delete the stored certificate and get a new one

Syntax

<static> refreshCertificate( onsuccess, onerror )

Parameters
Name Type Description
<onsuccess> sap.Logon~successCallbackNoParameters The callback to call if the screen flow succeeds.onsuccess will be called without parameters for this method.
<onerror> sap.Logon~errorCallback The function that is invoked in case of an error.
Example
var errorCallback = function(errorInfo){
    alert("Error: " + JSON.stringify(errorInfo));
}
var successCallback = function(){
    alert("The certificate is refreshed.");
}
sap.Logon.refreshCertificate(successCallback,errorCallback);