Class BankIdAuditEventModule
java.lang.Object
se.swedenconnect.bankid.idp.audit.BankIdAuditEventModule
Bean responsible of creating BankID audit events by listening to BankID events.
- Author:
- Martin Lindström, Felix Hellman
-
Constructor Summary
ConstructorsConstructorDescriptionBankIdAuditEventModule(BankIdAuthenticationProvider provider, BankIdSessionReader sessions) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionTranslates anOrderCancellationEventto aBankIdAuditEventTypes.BANKID_CANCELaudit event.Translates anOrderCompletionEventto aBankIdAuditEventTypes.AUTH_COMPLETEorBankIdAuditEventTypes.SIGN_COMPLETEaudit event.handleError(BankIdErrorEvent event) Translates aBankIdErrorEventto aBankIdAuditEventTypes.BANKID_ERRORaudit event.Translates anOrderResponseEventto aBankIdAuditEventTypes.INITaudit event.Translates aRecievedRequestEventto aBankIdAuditEventTypes.BANKID_RECEIVED_REQUESTaudit event.
-
Constructor Details
-
BankIdAuditEventModule
Constructor.- Parameters:
provider- the BankID authentication providersessions- the session handler
-
-
Method Details
-
handleReceivedRequestEvent
@EventListener @Order(-2147483648) public AuditApplicationEvent handleReceivedRequestEvent(RecievedRequestEvent event) Translates aRecievedRequestEventto aBankIdAuditEventTypes.BANKID_RECEIVED_REQUESTaudit event.- Parameters:
event- the event- Returns:
- the audit event
-
handleOrderResponse
@EventListener @Order(-2147483648) public AuditApplicationEvent handleOrderResponse(OrderResponseEvent event) Translates anOrderResponseEventto aBankIdAuditEventTypes.INITaudit event.- Parameters:
event- the event- Returns:
- the audit event
-
handleCompletion
@EventListener @Order(-2147483648) public AuditApplicationEvent handleCompletion(OrderCompletionEvent event) Translates anOrderCompletionEventto aBankIdAuditEventTypes.AUTH_COMPLETEorBankIdAuditEventTypes.SIGN_COMPLETEaudit event.- Parameters:
event- the event- Returns:
- the audit event
-
handleCancel
@EventListener @Order(-2147483648) public AuditApplicationEvent handleCancel(OrderCancellationEvent event) Translates anOrderCancellationEventto aBankIdAuditEventTypes.BANKID_CANCELaudit event.- Parameters:
event- the event- Returns:
- the audit event
-
handleError
Translates aBankIdErrorEventto aBankIdAuditEventTypes.BANKID_ERRORaudit event.- Parameters:
event- the event- Returns:
- the audit event
-