Create a certificate source description object for certificates from the system keystore.
On Android, sending a request with a certificate from the system store results in UI being shown for the user to pick the certificate to use (the certificate with the alias matching the given CertificateKey is pre-selected).
new CertificateFromStore( CertificateKey )
Name | Type | Description |
CertificateKey | string | A unique key (aka: alias) that is used to locate the certificate. |
// Create the certificate source description object. var systemCert = new sap.AuthProxy.CertificateFromStore("certificatekey"); // callbacks var successCB = function(serverResponse){ alert("Status: " + JSON.stringify(serverResponse.status)); alert("Headers: " + JSON.stringify(serverResponse.headers)); alert("Response: " + JSON.stringify(serverResponse.response)); } var errorCB = function(errorObject){ alert("Error making request: " + JSON.stringify(errorObject)); } // Make the request with the certificate source description object. sap.AuthProxy.sendRequest("POST", "https://hostname", headers, "THIS IS THE BODY", successCB, errorCB, null, null, 0, systemCert);