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
Modifier and TypeClassDescriptionstatic class
Representation of a SAML attribute. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
getAttributeValue
(org.opensaml.saml.saml2.core.Attribute attribute) Gets attribute value as a string.getName()
Gets the name of this data element.static Saml2AssertionAuditData
of
(org.opensaml.saml.saml2.core.Assertion assertion, boolean encrypted) Creates aSaml2AssertionAuditData
given 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:
getName
in classSaml2AuditData
- Returns:
- the audit data name
-
of
public static Saml2AssertionAuditData of(org.opensaml.saml.saml2.core.Assertion assertion, boolean encrypted) Creates aSaml2AssertionAuditData
given 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
-