Class Saml2SuccessResponseEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
se.swedenconnect.spring.saml.idp.events.AbstractSaml2IdpEvent
se.swedenconnect.spring.saml.idp.events.Saml2SuccessResponseEvent
- All Implemented Interfaces:
Serializable
An event that signals that a successful SAML response is being sent.
- Author:
- Martin Lindström
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionSaml2SuccessResponseEvent
(org.opensaml.saml.saml2.core.Response response, org.opensaml.saml.saml2.core.Assertion assertion, String spEntityId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.opensaml.saml.saml2.core.Assertion
Gets the (un-encrypted) SAMLAssertion
org.opensaml.saml.saml2.core.Response
Gets the SAML response.Gets the entityID of the SP that we are sending the response to.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
Saml2SuccessResponseEvent
public Saml2SuccessResponseEvent(org.opensaml.saml.saml2.core.Response response, org.opensaml.saml.saml2.core.Assertion assertion, String spEntityId) Constructor.- Parameters:
response
- the SAML responseassertion
- the SAML Assertion (before being encrypted)spEntityId
- the entityID of the SP that we are sending the response to
-
-
Method Details
-
getResponse
public org.opensaml.saml.saml2.core.Response getResponse()Gets the SAML response.- Returns:
- the
Response
-
getAssertion
public org.opensaml.saml.saml2.core.Assertion getAssertion()Gets the (un-encrypted) SAMLAssertion
- Returns:
- an
Assertion
-
getSpEntityId
Gets the entityID of the SP that we are sending the response to.- Returns:
- SP SAML entityID
-