accessControl
Class IntegrityCheck

java.lang.Object
  extended by accessControl.IntegrityCheck

final class IntegrityCheck
extends java.lang.Object

Checks integrity of a message by generating a local message authentication code and comparing it to the one included in the message.

This class is thread-safe.

Author:
Karl-Peter Fuchs

Method Summary
protected static boolean isMACCorrect(Message message)
          Checks if the bypassed message has integrity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isMACCorrect

protected static boolean isMACCorrect(Message message)
Checks if the bypassed message has integrity. Method is thread-safe.

Parameters:
message - Message to check.
Returns:
Whether message authentication code is correct or not.