Note: Refer to the code in "Sample Code Reference" to understand this step better.
To implement the Device ID and DeviceDNA collection, include (declare) the following parameters in your HTML code before processing anything related to DeviceDNA:
<html>
<script type="text/javascript" src="devicedna/riskminder-client.js"></script>
<script type="text/javascript">
var client;
window.onload = function()
{
init();
}
function init(){
client = new ca.rm.Client();
var contextPath = "<%=request.getContextPath()%>";
client.setProperty("baseurl", contextPath);
client.loadFlash(readyCallback);
}
function readyCallback(flag)
{
// set desired configurations...
configureClient();
client.processDNA();
}
function configureClient() {
// set the desired name for the cookie
client.setProperty("didname", "rmclient");
// turn off flash
client.setProperty("noFlash", true);
/// configure MESC values
client.setProperty("mescmaxIterations", 2);
client.setProperty("mesccalibrationduration", 150);
client.setProperty("mescintervaldelay", 45);
// etc...
//Refer to the setProperty() API description in "Understanding the APIs for Retrieving DeviceDNA in the Sample Code" for the complete list of configuration parameters that you can use according to your requirements.
}
<body>
//Your HTML code here
</body>
</html>
}
Note: Refer to the setProperty() API description in Understanding the APIs for Retrieving DeviceDNA in the Sample Code for the complete list of configuration parameters that you can use.
You can also refer to index.jsp, which is a part of the RiskMinder Sample Application. This file showcases the collection of DeviceDNA and other required information and sets these parameters for the session. After you deploy the Sample Application, this file is available at:
<RISKMINDER_SAMPLEAPP_HOME>\index.jsp
For example, if you are using Apache Tomcat 5.5, then the location of index.jsp will be <Tomcat_Home>\webapps\riskfort-3.1-sample-application\index.jsp.
|
Copyright © 2013 CA.
All rights reserved.
|
|