{"id":1542,"date":"2022-04-06T12:21:14","date_gmt":"2022-04-06T12:21:14","guid":{"rendered":"https:\/\/trackwizz.com\/developers-hub\/?post_type=docs&#038;p=1542"},"modified":"2022-06-29T12:58:14","modified_gmt":"2022-06-29T12:58:14","password":"","slug":"api-sdk-download-2","status":"publish","type":"docs","link":"https:\/\/trackwizz.com\/developers-hub\/docs\/aadhar-image-masking\/api-sdk-download-2\/","title":{"rendered":"API SDK Download"},"content":{"rendered":"<style>\n.button {\n  background-color: #0099d3;\n  border: none;\n  color: white;\n  padding: 15px 32px;\n  text-align: center;\n  text-decoration: none;\n  font-size: 16px;\n  margin: 4px 2px;\n  cursor: pointer;\n}\na.button {\n    -webkit-appearance: button;\n    -moz-appearance: button;\n    appearance: button;\n    text-decoration: none;\n    color: #fff;\n}\n<\/style>\n<div class=\"container\">\n<div class=\"row text-center\">\n<!--\n\n<div class=\"col-xs-7 col-sm-6 col-lg-3 mt-20 hvr\"><a href=\"#dot-net\"><img decoding=\"async\" src=\"https:\/\/trackwizz.com\/developers-hub\/wp-content\/uploads\/2022\/04\/dot-net-logo.jpg\"><\/a><\/div>\n\n\n\n\n<div class=\"col-md-1 col-sm-1 mt-20 mn\"><\/div>\n\n--><\/p>\n<div class=\"col-xs-7 col-sm-6 col-lg-3 mt-20 hvr\"><a href=\"#java\"><img decoding=\"async\" src=\"https:\/\/trackwizz.com\/developers-hub\/wp-content\/uploads\/2022\/04\/java.png\"><\/a><\/div>\n<p><!--\n\n<div class=\"col-md-1\"><img decoding=\"async\" src=\"https:\/\/trackwizz.com\/developers-hub\/wp-content\/uploads\/2021\/10\/border.png\"><\/div>\n\n\n\n\n<div class=\"col-xs-5 col-sm-4 col-lg-3 mt-20 hvr\"><a href=\"#python\"><img decoding=\"async\" src=\"https:\/\/trackwizz.com\/developers-hub\/wp-content\/uploads\/2022\/04\/python.png\"><\/a><\/div>\n\n\n\n\n<div class=\"col-md-1 col-sm-1 mn mt-20\"><\/div>\n\n-->\n<\/div>\n<\/div>\n<p id=\"java\">Java<\/p>\n<p><strong>Sample Code<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nclass Testclass{ \r\n\r\npublic static void main(String&#x5B;] args) throws Exception { \r\n\r\nA48WebClient a64WebClient = new A48WebClient(); \r\n\r\nFileInputStream publicPath = new \r\nFileInputStream(&quot;src\/main\/java\/AadharMasking\/EncryptionHelpers\/Trackwizz_Public.cer&quot;); \r\n\r\nbyte&#x5B;] publicKeyBytes = publicPath.readAllBytes(); \r\n \r\nInputStream privatePath = new \r\nFileInputStream(&quot;src\/main\/java\/AadharMasking\/EncryptionHelpers\/abc-cert.pfx&quot;); 12. \r\nbyte&#x5B;] privateKeyBytes = privatePath.readAllBytes(); \r\n\r\nA48RequestData a64RequestData = a64WebClient.getRequestData(); \r\nA48ClientRequestModel a64ClientRequestModel =  \r\na64WebClient.GetA48ClientRequestModel(publicKeyBytes,privateKeyBytes,a64RequestData ); \r\n\r\n\/\/ CompletableFuture&lt;A64ClientResponseModel&gt; res =  \r\na64WebClient.ExecuteAsync(a64ClientRequestModel); \r\n\r\n\/\/ A64ClientResponseModel a64ClientResponseModel = res.get(); \r\n \r\nA48ClientResponseModel a64ClientResponseModel =  \r\na64WebClient.Execute(a64ClientRequestModel); \r\nSystem.out.println(a64ClientResponseModel.toString()); \r\n} \r\n \r\npublic A48RequestData getRequestData() throws IOException { \r\nFileInputStream publicPath = new \r\nFileInputStream(&quot;src\/main\/java\/AadharMasking\/EncryptionHelpers\/Aadhaar_Image.jpg&quot;);  \r\nbyte&#x5B;] publicKeyBytes = publicPath.readAllBytes(); \r\nString imageData = Base64.getEncoder().encodeToString(publicKeyBytes);\r\nA48RequestData a48RequestData = new A48RequestData(); \r\na48RequestData.ParentCompany=&quot; &quot;; \r\na48RequestData.RequestId = &quot;112247&quot;; \r\na48RequestData.ImageType = ImageTypeEnum.JPG; \r\na48RequestData.ApplicationFormNo = &quot;AF123&quot;; \r\na48RequestData.MaskingType = MaskingTypeEnum.MT3; \r\na48RequestData.AttachmentType = AttachmentTypeEnum.AadharCard; \r\na48RequestData.ImageData = imageData; \r\nreturn a48RequestData;\r\n\r\n} \r\n \r\nA48ClientRequestModel GetA48ClientRequestModel(byte&#x5B;] publicKeyBytes, byte&#x5B;]  privateKeyBytes, A48RequestData a48RequestData) throws Exception { \r\nString apiToken = &quot;&quot;; \r\nString privatePassword = &quot;&quot;; \r\nString apiURL =  \r\n&quot;https:\/\/trackwizzsandboxapi.tssconsultancy.com:54322\/crmapi\/TrackwizzWebApi\/A48\/Ma skAadhaarNumber&quot;; \r\n\r\nreturn new A48ClientRequestModel(apiToken, privateKeyBytes,  publicKeyBytes,privatePassword,a48RequestData,apiURL,a48RequestData.RequestId); 50. } \r\n\r\n}\r\n\r\n<\/pre>\n<p style=\"text-align:center;\"><a href=\"https:\/\/trackwizz.com\/developers-hub\/screening\/download\/AMS-java.zip\" class=\"button\">Download<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java Sample Code class Testclass{ public static void main(String&#x5B;] args) throws Exception { A48WebClient a64WebClient = new A48WebClient(); FileInputStream publicPath = new FileInputStream(&quot;src\/main\/java\/AadharMasking\/EncryptionHelpers\/Trackwizz_Public.cer&quot;); byte&#x5B;] publicKeyBytes = publicPath.readAllBytes(); InputStream privatePath = new FileInputStream(&quot;src\/main\/java\/AadharMasking\/EncryptionHelpers\/abc-cert.pfx&quot;); 12. byte&#x5B;] privateKeyBytes = privatePath.readAllBytes(); A48RequestData a64RequestData = a64WebClient.getRequestData(); A48ClientRequestModel a64ClientRequestModel = a64WebClient.GetA48ClientRequestModel(publicKeyBytes,privateKeyBytes,a64RequestData ); \/\/ CompletableFuture&lt;A64ClientResponseModel&gt; res = a64WebClient.ExecuteAsync(a64ClientRequestModel); \/\/ A64ClientResponseModel a64ClientResponseModel = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[37],"doc_tag":[],"class_list":["post-1542","docs","type-docs","status-publish","hentry","doc_category-aadhar-image-masking"],"aioseo_notices":[],"year_month":"2026-04","word_count":268,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/trackwizz.com\/developers-hub\/author\/admin\/"},"doc_category_info":[{"term_name":"Aadhar Image Masking","term_url":"https:\/\/trackwizz.com\/developers-hub\/docs-category\/aadhar-image-masking\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/trackwizz.com\/developers-hub\/wp-json\/wp\/v2\/docs\/1542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trackwizz.com\/developers-hub\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/trackwizz.com\/developers-hub\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/trackwizz.com\/developers-hub\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trackwizz.com\/developers-hub\/wp-json\/wp\/v2\/comments?post=1542"}],"version-history":[{"count":0,"href":"https:\/\/trackwizz.com\/developers-hub\/wp-json\/wp\/v2\/docs\/1542\/revisions"}],"wp:attachment":[{"href":"https:\/\/trackwizz.com\/developers-hub\/wp-json\/wp\/v2\/media?parent=1542"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/trackwizz.com\/developers-hub\/wp-json\/wp\/v2\/doc_category?post=1542"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/trackwizz.com\/developers-hub\/wp-json\/wp\/v2\/doc_tag?post=1542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}