Package io.jmix.saml.util
Class SamlAssertionUtils
java.lang.Object
io.jmix.saml.util.SamlAssertionUtils
Utility class that provides some methods for working with SAML assertions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAssertionAttributes(org.opensaml.saml.saml2.core.Assertion assertion) Extracts all attributes from the assertion.static @Nullable StringgetUsername(org.opensaml.saml.saml2.core.Assertion assertion) Returns username from the assertion.protected static @Nullable ObjectgetXmlObjectValue(org.opensaml.core.xml.XMLObject xmlObject)
-
Constructor Details
-
SamlAssertionUtils
public SamlAssertionUtils()
-
-
Method Details
-
getAssertionAttributes
public static Map<String,List<Object>> getAssertionAttributes(org.opensaml.saml.saml2.core.Assertion assertion) Extracts all attributes from the assertion.- Parameters:
assertion- SAML assertion- Returns:
- map of attribute names to attribute values
-
getUsername
Returns username from the assertion.- Parameters:
assertion- SAML assertion- Returns:
- username
-
getXmlObjectValue
-