Class Saml2IdpEventPublisher
java.lang.Object
se.swedenconnect.spring.saml.idp.events.Saml2IdpEventPublisher
A publisher for SAML IdP events.
- Author:
- Martin Lindström
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPublishes aSaml2AuthnRequestReceivedEventindicating that a SAMLAuthnRequestwas received.voidPublishes aSaml2PreUserAuthenticationEvent.voidpublishSamlErrorResponse(Response response, String entityId) Publishes aSaml2ErrorResponseEventindicating that a SAML error response is about to be sent.voidpublishSamlSuccessResponse(Response response, Assertion assertion, String spEntityId) Publishes aSaml2SuccessResponseEventindicating that a successful SAML response is about to be sent.voidPublishes aSaml2UnrecoverableErrorEventindicating that anUnrecoverableSaml2IdpExceptionhas been thrown.voidPublishes aSaml2PostUserAuthenticationEventindicating that anUserAuthenticationProviderhas authenticated the user.
-
Constructor Details
-
Saml2IdpEventPublisher
Constructor.- Parameters:
publisher- the system's event publisher
-
-
Method Details
-
publishAuthnRequestReceived
Publishes aSaml2AuthnRequestReceivedEventindicating that a SAMLAuthnRequestwas received.- Parameters:
token- theSaml2AuthnRequestAuthenticationToken
-
publishSamlSuccessResponse
Publishes aSaml2SuccessResponseEventindicating that a successful SAML response is about to be sent.- Parameters:
response- the SAML responseassertion- the SAML Assertion (before being encrypted)spEntityId- the entityID of the SP that we are sending the response to
-
publishSamlErrorResponse
Publishes aSaml2ErrorResponseEventindicating that a SAML error response is about to be sent.- Parameters:
response- the SAMLResponseentityId- the SAML entityID of the recipient
-
publishBeforeUserAuthenticated
Publishes aSaml2PreUserAuthenticationEvent. This is fired before the user is authenticated but after all the input SAML processing has been performed.- Parameters:
token- aSaml2UserAuthenticationInputTokentoken
-
publishUserAuthenticated
Publishes aSaml2PostUserAuthenticationEventindicating that anUserAuthenticationProviderhas authenticated the user.- Parameters:
authn- theSaml2UserAuthentication
-
publishUnrecoverableSamlError
Publishes aSaml2UnrecoverableErrorEventindicating that anUnrecoverableSaml2IdpExceptionhas been thrown.- Parameters:
error- theUnrecoverableSaml2IdpExceptionerror
-