{"id":54869,"date":"2022-04-23T16:01:59","date_gmt":"2022-04-23T10:31:59","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=54869"},"modified":"2024-06-10T15:40:23","modified_gmt":"2024-06-10T10:10:23","slug":"jose-encryption-and-aem-keystore-integration","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/","title":{"rendered":"JOSE Encryption and AEM Keystore Integration"},"content":{"rendered":"<h2><span style=\"font-weight: 400;\">What is JOSE?<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">JOSE or JSON Object Signing and Encryption , in brief, <\/span><span style=\"font-weight: 400;\">is a framework intended to provide a method to securely transfer claims (such as authorization information) between parties. The JOSE framework provides a collection of specifications to serve this purpose.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">One big plus for this framework is that it has excellent support in most programming languages.\u00a0<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Usages\u00a0<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">JOSE encryption can be used for encryption of token along the network for maintaining authenticity.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">We used it for securing payments on our website. According to <\/span><a href=\"https:\/\/rbidocs.rbi.org.in\/rdocs\/notification\/PDFs\/MD7493544C24B5FC47D0AB12798C61CDB56F.PDF\"><span style=\"font-weight: 400;\">RBI circular <\/span><\/a><span style=\"font-weight: 400;\">\u201c An appropriate level of encryption and security shall be implemented in the digital payment ecosystem.\u201d<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Other use cases are Security Tokens, OAuth, Web Cryptography, XMPP.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Understanding the structure<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Now these are the things that comprise the JOSE standard.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>JWK<\/b><span style=\"font-weight: 400;\"> : JSON Web Key (Public Key shared over the network in JSON format)<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>JWS <\/b><span style=\"font-weight: 400;\">: JSON Web Signature. So this is a serialized message with 3 (.) separated strings of below format.<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-54934 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2022\/04\/Diagram-01.png\" alt=\"JOSE Encryption and AEM Keystore Integration\" width=\"2501\" height=\"318\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-01.png 2501w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-01-300x38.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-01-1024x130.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-01-768x98.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-01-1536x195.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-01-2048x260.png 2048w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-01-624x79.png 624w\" sizes=\"auto, (max-width: 2501px) 100vw, 2501px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>JWE <\/b><span style=\"font-weight: 400;\">: JSON Web Encryption. This is a serialized message with 5 (.) separated strings of below format.<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-54935 aligncenter\" src=\"\/blog\/wp-ttn-blog\/uploads\/2022\/04\/Diagram-02.png\" alt=\"Blog image\" width=\"546\" height=\"70\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-02.png 2501w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-02-300x38.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-02-1024x130.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-02-768x98.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-02-1536x195.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-02-2048x260.png 2048w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Diagram-02-624x79.png 624w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">This is how the decryption works at the receiver end.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-54933 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2022\/04\/Screenshot-2022-04-20-142610.png\" alt=\"Blog image\" width=\"1762\" height=\"237\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-20-142610.png 1762w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-20-142610-300x40.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-20-142610-1024x138.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-20-142610-768x103.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-20-142610-1536x207.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Screenshot-2022-04-20-142610-624x84.png 624w\" sizes=\"auto, (max-width: 1762px) 100vw, 1762px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">This blog talks about integration of JOSE with an application hosted on AEM utilizing AEM keystore for safekeeping of key pairs i.e. Public and Private Keys.<\/span><\/p>\n<p>Here are the four steps required to follow:<\/p>\n<p><b>1. Storing Encryption Keys in AEM<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Firstly let&#8217;s go through the process of storing keys on AEM.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Here are the Adobe documentation link for <a href=\"https:\/\/developer.adobe.com\/events\/docs\/guides\/using\/aem\/aem_keystore_setup\/\">keystore<\/a> and <a href=\"https:\/\/experienceleague.adobe.com\/docs\/experience-manager-65\/forms\/administrator-help\/manage-certificates-credentials\/certificates.html?lang=en\">truststore<\/a> setup. <\/span><span style=\"font-weight: 400;\">Using these steps you can store receivers public certificate in truststore and senders private public key pair in keystore for safekeeping.<\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">This complete the cert setup.<\/span><\/i><\/p>\n<p><b>2. Fetching Keys<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Next is fetching these certificates.\u00a0I am using<b> RSA keys<\/b> in the project which are the most commonly used type of encryption keys in asymmetric encryption techniques.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Check code from the repo below for understanding how to fetch keys from Keystore and trustore.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><a href=\"https:\/\/github.com\/PulkitVashistha\/Jose\/blob\/master\/core\/src\/main\/java\/com\/jose\/encryption\/core\/util\/KeysUtil.java\"><span style=\"font-weight: 400;\">KeysUtil.java<\/span><\/a><\/p>\n<p><b>3. Using the Library\u00a0<\/b><\/p>\n<p><span style=\"font-weight: 400;\">We are using <\/span><b>nimbus-jose-jwt<\/b><span style=\"font-weight: 400;\"> maven dependency in our project.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-54930 \" src=\"\/blog\/wp-ttn-blog\/uploads\/2022\/04\/Code-01.png\" alt=\"Blog image\" width=\"523\" height=\"215\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-01.png 7122w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-01-300x123.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-01-1024x421.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-01-768x316.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-01-1536x631.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-01-2048x842.png 2048w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-01-624x257.png 624w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/p>\n<p><span style=\"font-weight: 400;\"><span style=\"font-size: 1rem;\"><br \/>\nNimbus also doesn\u2019t provide support for PS256 right away, but using BouncyCastle provider we can ensure the same. <\/span>We also tried with the <\/span><b>JOSE4j <\/b><span style=\"font-weight: 400;\">library but we couldn\u2019t use that one because it did not have support for <\/span><b>PS256 <\/b><span style=\"font-weight: 400;\">encryption, which is a rather scarcely used encryption algorithm. <\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As you\u2019ll be seeing below, we are using this algorithm for signing our JWT web token.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-54931 \" src=\"\/blog\/wp-ttn-blog\/uploads\/2022\/04\/Code-02.png\" alt=\"JOSE Encryption and AEM Keystore Integration\" width=\"530\" height=\"229\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-02.png 2560w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-02-300x130.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-02-1024x442.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-02-768x332.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-02-1536x664.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-02-2048x885.png 2048w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-02-624x270.png 624w\" sizes=\"auto, (max-width: 530px) 100vw, 530px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now what we need to do is make sure this line gets executed at the start to allow the PS256 algorithm to work for Nimbus JOSE.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-54932 \" src=\"\/blog\/wp-ttn-blog\/uploads\/2022\/04\/Code-03.png\" alt=\"JOSE Encryption and AEM Keystore Integration\" width=\"532\" height=\"143\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-03.png 2560w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-03-300x81.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-03-1024x276.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-03-768x207.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-03-1536x414.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-03-2048x552.png 2048w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2022\/04\/Code-03-624x168.png 624w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/p>\n<p><b>4. Performing JOSE Encryption<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Check the functions for encryption and decryption in the repo below.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><a href=\"https:\/\/github.com\/PulkitVashistha\/Jose\/blob\/master\/core\/src\/main\/java\/com\/jose\/encryption\/core\/util\/JoseUtil.java\"><span style=\"font-weight: 400;\">JoseUtil.java<\/span><\/a><\/p>\n<h2>References<\/h2>\n<ol>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/jose.sambego.tech\/\"><span style=\"font-weight: 400;\">No way, JOSE!<\/span><\/a><span style=\"font-weight: 400;\"> This is a ppt that covers the basics of hashing and encryption along with some insights to prevalent encryption algorithms. Then it gives a detailed insight into the workings of JOSE.<\/span><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/jwt.io\/\"><span style=\"font-weight: 400;\">JWT.io<\/span><\/a><span style=\"font-weight: 400;\"> This is the documentation for JSON Web Token that can cover your interests in JWT.<\/span><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/www.youtube.com\/watch?v=dpm00tLhSc4\"><span style=\"font-weight: 400;\" data-rich-links=\"{&quot;fple-t&quot;:&quot;No Way Jose! Cryptography &amp; Encryption - JS Monthly London - January 2021&quot;,&quot;fple-u&quot;:&quot;https:\/\/www.youtube.com\/watch?v=dpm00tLhSc4&quot;,&quot;fple-mt&quot;:null,&quot;type&quot;:&quot;first-party-link&quot;}\">No Way JOSE! Cryptography &amp; Encryption &#8211; JS Monthly London &#8211; January 2021<\/span><\/a><span style=\"font-weight: 400;\">: This is the presentation on the above mentioned PPT. Great watch!<\/span><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/www.youtube.com\/watch?v=4zahvcJ9glg\"><span style=\"font-weight: 400;\" data-rich-links=\"{&quot;fple-t&quot;:&quot;The RSA Encryption Algorithm (1 of 2: Computing an Example)&quot;,&quot;fple-u&quot;:&quot;https:\/\/www.youtube.com\/watch?v=4zahvcJ9glg&quot;,&quot;fple-mt&quot;:null,&quot;type&quot;:&quot;first-party-link&quot;}\">The RSA Encryption Algorithm (1 of 2: Computing an Example)<\/span><\/a><span style=\"font-weight: 400;\">: Now this is something of interest if you are geeky about the math of the RSA encryption Algorithm and its basic working. It has 2 very short parts, part1 and part2. Definitely recommended. Very well explained.<\/span><\/li>\n<\/ol>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>What is JOSE? JOSE or JSON Object Signing and Encryption , in brief, is a framework intended to provide a method to securely transfer claims (such as authorization information) between parties. The JOSE framework provides a collection of specifications to serve this purpose. One big plus for this framework is that it has excellent support [&hellip;]<\/p>\n","protected":false},"author":1453,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":79,"footnotes":""},"categories":[5868,446,1994],"tags":[4961],"class_list":["post-54869","post","type-post","status-publish","format-standard","hentry","category-adobe","category-java","category-software-development","tag-aem-jose-encryption-keystore-truststore-nimbus-jose"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"What is JOSE? JOSE or JSON Object Signing and Encryption , in brief, is a framework intended to provide a method to securely transfer claims (such as authorization information) between parties. The JOSE framework provides a collection of specifications to serve this purpose. One big plus for this framework is that it has excellent support\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Pulkit Vashistha\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"JOSE Encryption and AEM Keystore Integration | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"What is JOSE? JOSE or JSON Object Signing and Encryption , in brief, is a framework intended to provide a method to securely transfer claims (such as authorization information) between parties. The JOSE framework provides a collection of specifications to serve this purpose. One big plus for this framework is that it has excellent support\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"JOSE Encryption and AEM Keystore Integration | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"What is JOSE? JOSE or JSON Object Signing and Encryption , in brief, is a framework intended to provide a method to securely transfer claims (such as authorization information) between parties. The JOSE framework provides a collection of specifications to serve this purpose. One big plus for this framework is that it has excellent support\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/#article\",\"name\":\"JOSE Encryption and AEM Keystore Integration | TO THE NEW Blog\",\"headline\":\"JOSE Encryption and AEM Keystore Integration\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/pulkit-vashistha\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2022\\\/04\\\/Diagram-01.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/#articleImage\"},\"datePublished\":\"2022-04-23T16:01:59+05:30\",\"dateModified\":\"2024-06-10T15:40:23+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/#webpage\"},\"articleSection\":\"Adobe, Java\\\/JVM, Software development, AEM Jose encryption keystore truststore nimbus-jose\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/java\\\/#listItem\",\"name\":\"Java\\\/JVM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/java\\\/#listItem\",\"position\":2,\"name\":\"Java\\\/JVM\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/java\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/#listItem\",\"name\":\"JOSE Encryption and AEM Keystore Integration\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/#listItem\",\"position\":3,\"name\":\"JOSE Encryption and AEM Keystore Integration\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/java\\\/#listItem\",\"name\":\"Java\\\/JVM\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/pulkit-vashistha\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/pulkit-vashistha\\\/\",\"name\":\"Pulkit Vashistha\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/a4f15e81-cb70-438d-94cf-3ef480691604_2292-Pulkit-Vashistha-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Pulkit Vashistha\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/\",\"name\":\"JOSE Encryption and AEM Keystore Integration | TO THE NEW Blog\",\"description\":\"What is JOSE? JOSE or JSON Object Signing and Encryption , in brief, is a framework intended to provide a method to securely transfer claims (such as authorization information) between parties. The JOSE framework provides a collection of specifications to serve this purpose. One big plus for this framework is that it has excellent support\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/jose-encryption-and-aem-keystore-integration\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/pulkit-vashistha\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/pulkit-vashistha\\\/#author\"},\"datePublished\":\"2022-04-23T16:01:59+05:30\",\"dateModified\":\"2024-06-10T15:40:23+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"JOSE Encryption and AEM Keystore Integration | TO THE NEW Blog","description":"What is JOSE? JOSE or JSON Object Signing and Encryption , in brief, is a framework intended to provide a method to securely transfer claims (such as authorization information) between parties. The JOSE framework provides a collection of specifications to serve this purpose. One big plus for this framework is that it has excellent support","canonical_url":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/#article","name":"JOSE Encryption and AEM Keystore Integration | TO THE NEW Blog","headline":"JOSE Encryption and AEM Keystore Integration","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/pulkit-vashistha\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2022\/04\/Diagram-01.png","@id":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/#articleImage"},"datePublished":"2022-04-23T16:01:59+05:30","dateModified":"2024-06-10T15:40:23+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/#webpage"},"articleSection":"Adobe, Java\/JVM, Software development, AEM Jose encryption keystore truststore nimbus-jose"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/java\/#listItem","name":"Java\/JVM"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/java\/#listItem","position":2,"name":"Java\/JVM","item":"https:\/\/2thenew.xyz\/blog\/category\/java\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/#listItem","name":"JOSE Encryption and AEM Keystore Integration"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/#listItem","position":3,"name":"JOSE Encryption and AEM Keystore Integration","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/java\/#listItem","name":"Java\/JVM"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/pulkit-vashistha\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/pulkit-vashistha\/","name":"Pulkit Vashistha","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/a4f15e81-cb70-438d-94cf-3ef480691604_2292-Pulkit-Vashistha-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Pulkit Vashistha"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/","name":"JOSE Encryption and AEM Keystore Integration | TO THE NEW Blog","description":"What is JOSE? JOSE or JSON Object Signing and Encryption , in brief, is a framework intended to provide a method to securely transfer claims (such as authorization information) between parties. The JOSE framework provides a collection of specifications to serve this purpose. One big plus for this framework is that it has excellent support","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/pulkit-vashistha\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/pulkit-vashistha\/#author"},"datePublished":"2022-04-23T16:01:59+05:30","dateModified":"2024-06-10T15:40:23+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"JOSE Encryption and AEM Keystore Integration | TO THE NEW Blog","og:description":"What is JOSE? JOSE or JSON Object Signing and Encryption , in brief, is a framework intended to provide a method to securely transfer claims (such as authorization information) between parties. The JOSE framework provides a collection of specifications to serve this purpose. One big plus for this framework is that it has excellent support","og:url":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"JOSE Encryption and AEM Keystore Integration | TO THE NEW Blog","twitter:description":"What is JOSE? JOSE or JSON Object Signing and Encryption , in brief, is a framework intended to provide a method to securely transfer claims (such as authorization information) between parties. The JOSE framework provides a collection of specifications to serve this purpose. One big plus for this framework is that it has excellent support","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"54869","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-65e0647ce44c3","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2022-04-07 12:11:47","updated":"2024-02-29 11:03:24","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\/category\/java\/\" title=\"Java\/JVM\">Java\/JVM<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tJOSE Encryption and AEM Keystore Integration\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Java\/JVM","link":"https:\/\/2thenew.xyz\/blog\/category\/java\/"},{"label":"JOSE Encryption and AEM Keystore Integration","link":"https:\/\/2thenew.xyz\/blog\/jose-encryption-and-aem-keystore-integration\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/54869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/1453"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=54869"}],"version-history":[{"count":13,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/54869\/revisions"}],"predecessor-version":[{"id":54948,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/54869\/revisions\/54948"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=54869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=54869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=54869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}