Class LogVerifier


  • public class LogVerifier
    extends Object
    This class is verifying signature that is generated with the MAC value for each log entry.
    • Constructor Detail

      • LogVerifier

        public LogVerifier​(String log,
                           AMPassword verPass)
        Constructs LogVerifier object
        Parameters:
        log - logger name associated with this verifier
        verPass - the password for verifier secure store
    • Method Detail

      • getVerificationFlag

        public boolean getVerificationFlag()
        Return verification flag
        Returns:
        verification flag
      • startLogVerifier

        public void startLogVerifier()
        Method that starts the log Verifier thread
      • stopLogVerifier

        public void stopLogVerifier()
        Method to stop the log verifier thread if it is running
      • verify

        public boolean verify()
                       throws Exception
        Checks each record in the list of log files for tampering.
        Returns:
        a boolean value as a result of the verification
        Throws:
        Exception - if it fails to verify any mac value in the log entry.