Package com.helger.as2lib.crypto
Interface IMICMatchingHandler
-
- All Known Implementing Classes:
LoggingMICMatchingHandler
public interface IMICMatchingHandlerA special handler if MIC is not matched.- Since:
- 4.4.0
- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonMICMatch(IMessage aMsg, String sMIC)Invoked upon MIC matchvoidonMICMismatch(IMessage aMsg, String sOriginalMIC, String sReceivedMIC)Invoked upon MIC mismatch
-
-
-
Method Detail
-
onMICMatch
void onMICMatch(@Nonnull IMessage aMsg, @Nonnull String sMIC) throws AS2Exception
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
-
-