Enabling XSRF Token Protection

Once you have enabled XCSRF token on the device, the token is extracted after the first GET request triggered by the application. This token is retained in the device memory, and is added to all subsequent modifying requests.
The following code illustrates how to enable XCSRF token.
 protected SDMConnectivityParameters param = new
        SDMConnectivityParameters();
        //if(Application end point is a Odata UrL) then
        param.enableXsrf(true);