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
Audit data for a SAML
Assertion.- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresentation of a SAML attribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringgetAttributeValue(Attribute attribute) Gets attribute value as a string.getName()Gets the name of this data element.static Saml2AssertionAuditDataCreates aSaml2AssertionAuditDatagiven anAssertion.toString()
-
Constructor Details
-
Saml2AssertionAuditData
public Saml2AssertionAuditData()
-
-
Method Details
-
getName
Gets the name of this data element. The name should be in "kebab-case", i.e., "data-element".- Specified by:
getNamein classSaml2AuditData- Returns:
- the audit data name
-
of
Creates aSaml2AssertionAuditDatagiven anAssertion.- Parameters:
assertion- the SAML assertionencrypted- whether this assertion is encrypted (when placed in response)- Returns:
- a
Saml2AssertionAuditData
-
getAttributeValue
Gets attribute value as a string. If multivalued, the first value is read.- Parameters:
attribute- the attribute- Returns:
- value as a String
-
toString
-