You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
namespace SmsGateway;
|
|
|
|
|
|
|
|
use SmsGateway\LoggerInterface;
|
|
|
|
|
|
|
|
interface AuthInterface
|
|
|
|
{
|
|
|
|
public function setLogger(LoggerInterface $logger);
|
|
|
|
|
|
|
|
public function getLogger();
|
|
|
|
|
|
|
|
public function authenticate($username, $password, $ip, $sessionId);
|
|
|
|
|
|
|
|
public function getToken($username, $ip, $sessionId);
|
|
|
|
|
|
|
|
public function isTokenValid($token, $ip, $sessionId);
|
|
|
|
|
|
|
|
public function removeToken($token, $ip, $sessionId);
|
|
|
|
|
|
|
|
public function getTokenUsername($token, $ip, $sessionId);
|
|
|
|
}
|