Class Saml2AssertionAuditData

java.lang.Object
se.swedenconnect.spring.saml.idp.audit.data.Saml2AuditData
se.swedenconnect.spring.saml.idp.audit.data.Saml2AssertionAuditData
All Implemented Interfaces:
Serializable

public class Saml2AssertionAuditData extends Saml2AuditData
Audit data for a SAML Assertion.
Author:
Martin Lindström
See Also:
  • Constructor Details

    • Saml2AssertionAuditData

      public Saml2AssertionAuditData()
  • Method Details

    • getName

      public String getName()
      Gets the name of this data element. The name should be in "kebab-case", i.e., "data-element".
      Specified by:
      getName in class Saml2AuditData
      Returns:
      the audit data name
    • of

      public static Saml2AssertionAuditData of(org.opensaml.saml.saml2.core.Assertion assertion, boolean encrypted)
      Creates a Saml2AssertionAuditData given an Assertion.
      Parameters:
      assertion - the SAML assertion
      encrypted - whether this assertion is encrypted (when placed in response)
      Returns:
      a Saml2AssertionAuditData
    • getAttributeValue

      protected static String getAttributeValue(org.opensaml.saml.saml2.core.Attribute attribute)
      Gets attribute value as a string. If multivalued, the first value is read.
      Parameters:
      attribute - the attribute
      Returns:
      value as a String
    • toString

      public String toString()
      Overrides:
      toString in class Object