1: <?php
2: /*
3: You may not change or alter any portion of this comment or credits
4: of supporting developers from this source code or any supporting source code
5: which is considered copyrighted (c) material of the original comment or credit authors.
6:
7: This program is distributed in the hope that it will be useful,
8: but WITHOUT ANY WARRANTY; without even the implied warranty of
9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: */
11:
12: namespace Xoops\Core\Session;
13:
14: use Xoops\Core\AttributeInterface;
15:
16: /**
17: * Session management
18: *
19: * @category Xoops\Core\Session
20: * @package FingerprintInterface
21: * @author Richard Griffith <richard@geekwright.com>
22: * @copyright 2015 XOOPS Project (http://xoops.org)
23: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
24: * @link http://xoops.org
25: */
26: interface FingerprintInterface
27: {
28: /**
29: * This method manages a fingerprint
30: *
31: * Check current client Fingerprint against the values saved in the AttributeInterface object.
32: * Save the current Fingerprint to the AttributeInterface object
33: * Rate the fingerprint match pass/fail based on any changes
34: * On fail, clear the AttributeInterface object, leaving only the new client fingerprint
35: *
36: * @param AttributeInterface $session session manager object or another
37: * AttributeInterface implementing object
38: *
39: * @return bool true if matched, false if not
40: */
41: public function checkSessionPrint(AttributeInterface $session);
42: }
43: