Class SamlAssertionUtils

java.lang.Object
io.jmix.saml.util.SamlAssertionUtils

public class SamlAssertionUtils extends Object
Utility class that provides some methods for working with SAML assertions.
  • 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

      public static @Nullable String getUsername(org.opensaml.saml.saml2.core.Assertion assertion)
      Returns username from the assertion.
      Parameters:
      assertion - SAML assertion
      Returns:
      username
    • getXmlObjectValue

      protected static @Nullable Object getXmlObjectValue(org.opensaml.core.xml.XMLObject xmlObject)