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
ConstructorDescriptionBankIdAuditEventModule
(BankIdAuthenticationProvider provider, BankIdSessionReader sessions) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionTranslates anOrderCancellationEvent
to aBankIdAuditEventTypes.BANKID_CANCEL
audit event.Translates anOrderCompletionEvent
to aBankIdAuditEventTypes.AUTH_COMPLETE
orBankIdAuditEventTypes.SIGN_COMPLETE
audit event.handleError
(BankIdErrorEvent event) Translates aBankIdErrorEvent
to aBankIdAuditEventTypes.BANKID_ERROR
audit event.Translates anOrderResponseEvent
to aBankIdAuditEventTypes.INIT
audit event.Translates aRecievedRequestEvent
to aBankIdAuditEventTypes.BANKID_RECEIVED_REQUEST
audit 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 aRecievedRequestEvent
to aBankIdAuditEventTypes.BANKID_RECEIVED_REQUEST
audit event.- Parameters:
event
- the event- Returns:
- the audit event
-
handleOrderResponse
@EventListener @Order(-2147483648) public AuditApplicationEvent handleOrderResponse(OrderResponseEvent event) Translates anOrderResponseEvent
to aBankIdAuditEventTypes.INIT
audit event.- Parameters:
event
- the event- Returns:
- the audit event
-
handleCompletion
@EventListener @Order(-2147483648) public AuditApplicationEvent handleCompletion(OrderCompletionEvent event) Translates anOrderCompletionEvent
to aBankIdAuditEventTypes.AUTH_COMPLETE
orBankIdAuditEventTypes.SIGN_COMPLETE
audit event.- Parameters:
event
- the event- Returns:
- the audit event
-
handleCancel
@EventListener @Order(-2147483648) public AuditApplicationEvent handleCancel(OrderCancellationEvent event) Translates anOrderCancellationEvent
to aBankIdAuditEventTypes.BANKID_CANCEL
audit event.- Parameters:
event
- the event- Returns:
- the audit event
-
handleError
Translates aBankIdErrorEvent
to aBankIdAuditEventTypes.BANKID_ERROR
audit event.- Parameters:
event
- the event- Returns:
- the audit event
-