Class Saml2ResponseAuditData
java.lang.Object
se.swedenconnect.spring.saml.idp.audit.data.Saml2AuditData
se.swedenconnect.spring.saml.idp.audit.data.Saml2ResponseAuditData
- All Implemented Interfaces:
Serializable
Audit data representing a SAML response.
- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a SAMLStatus
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe destination, i.e., where the response is being sent.getId()
The Response ID.The ID matching the AuthnRequest ID.The response issuance time.getName()
Gets the name of this data element.The status.boolean
isSigned()
Tells whether the response is signed.static Saml2ResponseAuditData
of
(org.opensaml.saml.saml2.core.Response response) Creates aSaml2ResponseAuditData
given aResponse
object.void
setDestination
(String destination) The destination, i.e., where the response is being sent.void
The Response ID.void
setInResponseTo
(String inResponseTo) The ID matching the AuthnRequest ID.void
setIssuedAt
(Instant issuedAt) The response issuance time.void
setSigned
(boolean signed) Tells whether the response is signed.void
The status.toString()
-
Constructor Details
-
Saml2ResponseAuditData
public Saml2ResponseAuditData()
-
-
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
Creates aSaml2ResponseAuditData
given aResponse
object.- Parameters:
response
- the SAML response- Returns:
- a
Saml2ResponseAuditData
-
toString
-
getId
The Response ID. -
setId
The Response ID. -
getInResponseTo
The ID matching the AuthnRequest ID. -
setInResponseTo
The ID matching the AuthnRequest ID. -
getStatus
The status. -
setStatus
The status. -
getIssuedAt
The response issuance time. -
setIssuedAt
The response issuance time. -
getDestination
The destination, i.e., where the response is being sent. -
setDestination
The destination, i.e., where the response is being sent. -
isSigned
public boolean isSigned()Tells whether the response is signed. -
setSigned
public void setSigned(boolean signed) Tells whether the response is signed.
-