Class AbstractDataMailPolicyFilter

    • Field Detail

      • logger

        protected org.apache.log4j.Logger logger
    • Constructor Detail

      • AbstractDataMailPolicyFilter

        public AbstractDataMailPolicyFilter()
    • Method Detail

      • getFooterSeparator

        protected java.lang.String getFooterSeparator()
        Returns footer separator
        Returns:
        String separator
      • generateAuthKey

        protected java.lang.String generateAuthKey​(Member mbr,
                                                   Data data)
        Returns a Base64( Id + ';' + MD5(Id + Password))
        Parameters:
        mbr - the Member
        data - the data
        Returns:
        String base64 value
      • isValidAuthKey

        protected Data isValidAuthKey​(Member mbr,
                                      java.lang.String content)
        Parse mail content to find a valid authentication key and associated Data
        Parameters:
        mbr - the Member performing the reply
        content - the data text
        Returns:
        Data the crypted data or null
      • getContentFooter

        protected java.lang.String getContentFooter​(Member toMbr,
                                                    Data data)
        Returns a default content footer for the given data
        Parameters:
        toMbr - the Member
        data - the data
        Returns:
        String footer
      • getContentFooter

        protected java.lang.String getContentFooter​(Member toMbr,
                                                    Data data,
                                                    java.lang.String topic,
                                                    java.lang.String address)
        Returns a default content footer for the given data
        Parameters:
        toMbr - the Member
        data - the data
        topic - the mail topic
        address - the address to reply
        Returns:
        String footer