All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Static Protected Member Functions
SwitchUserIdentity Class Reference
Inheritance diagram for SwitchUserIdentity:
UserIdentity

Public Member Functions

 authenticate ()
 
- Public Member Functions inherited from UserIdentity
 authenticate ()
 

Static Public Member Functions

static getPrimaryUser ()
 

Data Fields

const ERROR_NO_RIGHT_SWITCH_USER = 4
 
const PRIMARY_USER = 'primaryUser'
 
const LAST_USER = 'lastUser'
 
const PACKED_SESSION_KEY = 'primaryUserPackedSession'
 
const PACKED_COOKIES_KEY = 'primaryUserPackedCookies'
 
- Data Fields inherited from UserIdentity
const ERROR_NO_RIGHT_WEB_LOGIN = 3
 

Protected Member Functions

 noRightToSwitchUser ()
 
 redirectForInvalidSwitchRequest ()
 
 clearSessionAndCookiesForNormalUserSwitch ()
 
 clearCookiesForNormalUserSwitch ()
 
 clearSessionForNormalUserSwitch ()
 
 packSessionAndCookies ()
 
 unpackSessionAndCookies ()
 
 packSession ()
 
 unpackSession ()
 
 packCookies ()
 
 unpackCookies ()
 
 packIntoSession ($key, array $value)
 
 resolveValueForPacking (array $value)
 
 resolveValueForUnpacking ($packedValue)
 
 unpackFromSession ($key, $unpackToSession=true)
 
 unpackSessionByValue (array $unpackedValue)
 
 unpackCookiesByValue (array $unpackedValue)
 
 isSessionKeyNotForForSwitchingUser ($key)
 

Static Protected Member Functions

static hasPrimaryUser ()
 
static setPrimaryUser ($username)
 
static doesSessionValueExist ($name)
 
static getEncryptedSessionValue ($name)
 
static setEncryptedSessionValue ($name, $value)
 
static unsetPrimaryUser ()
 

Detailed Description

UserIdentity represents the data needed to identity a user.

Definition at line 40 of file SwitchUserIdentity.php.

Member Function Documentation

authenticate ( )

Authenticates a user.

Returns
boolean whether authentication succeeds.

Definition at line 56 of file SwitchUserIdentity.php.


The documentation for this class was generated from the following file:
Generated on Fri Jan 24 2020 07:10:44