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 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 null
        sMIC - The MIC calculated and received. May not be null.
        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 null
        sOriginalMIC - The MIC calculated here. May be null.
        sReceivedMIC - The MIC received from the other side. May be null.
        Throws:
        AS2Exception - In case of error