This code sample is to demonstrate how to generate and validate SAML Response using Open SAML API 3.3.0
Here's the details:
- Generate sample SAML Assertion
- Sign SAML Assertion using a private key
- Encrypt SAML Assertion using a public key
- Wrap the Assertion into SAML Response
- Encode SAML Response with Base64
- Decode SAML Response
- Decrypt SAML Assertion using the corresponding private key
- Validate the XML Signature with the corresponding public key
Requirement:
JDK 8 or above
Maven 3.5