ESET Secure Authentication SDK documentation
 All Classes Namespaces Functions Variables
Public Member Functions | List of all members
ESET\SecureAuthentication\SDK\Examples\InMemoryUserStorage Class Reference
Inheritance diagram for ESET\SecureAuthentication\SDK\Examples\InMemoryUserStorage:
ESET\SecureAuthentication\SDK\IUserStorage

Public Member Functions

 getStore ()
 
 setStore (array $store)
 
 loadUser ($username)
 
 saveUser ($username, $data)
 

Member Function Documentation

ESET\SecureAuthentication\SDK\Examples\InMemoryUserStorage::getStore ( )

Get the array storing user data

Returns
array
ESET\SecureAuthentication\SDK\Examples\InMemoryUserStorage::loadUser (   $username)

Load a user from storage (automatically called by SDK)

Parameters
$usernamestring
Returns
string

Implements ESET\SecureAuthentication\SDK\IUserStorage.

ESET\SecureAuthentication\SDK\Examples\InMemoryUserStorage::saveUser (   $username,
  $data 
)

Save a user to storage (automatically called by SDK)

Parameters
$usernamestring
$datastring
Returns
void

Implements ESET\SecureAuthentication\SDK\IUserStorage.

ESET\SecureAuthentication\SDK\Examples\InMemoryUserStorage::setStore ( array  $store)

Set the array storing user data

Parameters
array$store