mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-11-03 20:54:27 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			441 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			441 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
 | 
						|
 | 
						|
namespace Icinga\Authentication;
 | 
						|
 | 
						|
use Icinga\User;
 | 
						|
 | 
						|
interface Authenticatable
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Authenticate a user
 | 
						|
     *
 | 
						|
     * @param   User    $user
 | 
						|
     * @param   string  $password
 | 
						|
     *
 | 
						|
     * @return  bool
 | 
						|
     *
 | 
						|
     * @throws  \Icinga\Exception\AuthenticationException If authentication errors
 | 
						|
     */
 | 
						|
    public function authenticate(User $user, $password);
 | 
						|
}
 |