Package com.helger.as2lib.crypto
Interface IMICMatchingHandler
- All Known Implementing Classes:
LoggingMICMatchingHandler
public interface IMICMatchingHandler
A special handler if MIC is not matched.
- Since:
- 4.4.0
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onMICMatch
(IMessage aMsg, String sMIC) Invoked upon MIC matchvoid
onMICMismatch
(IMessage aMsg, String sOriginalMIC, String sReceivedMIC) Invoked upon MIC mismatch
-
Method Details
-
onMICMatch
Invoked upon MIC match- Parameters:
aMsg
- The message it is all about. Never nullsMIC
- The MIC calculated and received. May not benull
.- Throws:
AS2Exception
- In case of error
-
onMICMismatch
void onMICMismatch(@Nonnull IMessage aMsg, @Nullable String sOriginalMIC, @Nullable String sReceivedMIC) throws AS2Exception Invoked upon MIC mismatch- Parameters:
aMsg
- The message it is all about. Never nullsOriginalMIC
- The MIC calculated here. May benull
.sReceivedMIC
- The MIC received from the other side. May benull
.- Throws:
AS2Exception
- In case of error
-