public synchronized boolean verifyFileAuthTag() throws FileEncryptionException {
  byte[] storedTag=backEncRandomAccessFile.readFileAuthenticationTag();
  if (storedTag == null || storedTag.length != AUTH_TAG_SIZE) {
    throw new FileEncryptionException("Encrypted file has invalid file authentication tag!");
  }
 else {
    byte[] tmp=buildFileAuthTag();
    return Arrays.equals(tmp,storedTag);
  }
}

public synchronized boolean verifyFileAuthTag ( ) throws FileEncryptionException { byte [ ] storedTag = backEncRandomAccessFile . readFileAuthenticationTag ( ) ; if ( storedTag == null || storedTag . length != AUTH_TAG_SIZE ) { throw new FileEncryptionException ( "Encrypted file has invalid file authentication tag!" ) ; } else { byte [ ] tmp = buildFileAuthTag ( ) ; return Arrays . equals ( tmp , storedTag ) ; } }
verifies the complete list of all authentication tags w . r . t . the central file authentication tag
