tcz001 / OpenSAML3Example

Demonstration on using Java OpenSAML API to generate Base64 encoded, encrypted and signed SAML 2.0 Response

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This code sample is to demonstrate how to generate and validate SAML Response using Open SAML API 3.3.0

Here's the details:

  1. Generate sample SAML Assertion
  2. Sign SAML Assertion using a private key
  3. Encrypt SAML Assertion using a public key
  4. Wrap the Assertion into SAML Response
  5. Encode SAML Response with Base64
  6. Decode SAML Response
  7. Decrypt SAML Assertion using the corresponding private key
  8. Validate the XML Signature with the corresponding public key

Requirement:

JDK 8 or above

Maven 3.5

About

Demonstration on using Java OpenSAML API to generate Base64 encoded, encrypted and signed SAML 2.0 Response


Languages

Language:Java 100.0%