PHP Class Webiny\Component\Security\Token\TokenData

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
__construct ( array $tokenData ) Base constructor.
getAuthProviderName ( ) : string Returns the name of auth provider.
getRoles ( ) : array Returns the roles stored in token data.
getUserProviderName ( ) : string Returns the name of user provider.
getUsername ( ) : string Returns the username stored in token data.
getValidUntil ( ) : string Returns valid until timestamp

Method Details

__construct() public method

Base constructor.
public __construct ( array $tokenData )
$tokenData array Decrypted token data array.

getAuthProviderName() public method

Returns the name of auth provider.
public getAuthProviderName ( ) : string
return string

getRoles() public method

Returns the roles stored in token data.
public getRoles ( ) : array
return array

getUserProviderName() public method

Returns the name of user provider.
public getUserProviderName ( ) : string
return string

getUsername() public method

Returns the username stored in token data.
public getUsername ( ) : string
return string

getValidUntil() public method

Returns valid until timestamp
public getValidUntil ( ) : string
return string