Copied!

TokenServiceDecorator

TokenServiceDecorator.php : 15
Implements TokenService

Properties

protected $innerService

TokenServiceDecorator.php : 17
protected TokenService $innerService

Methods

public__construct()

TokenServiceDecorator.php : 19
public __construct(TokenService $innerService)

Parameters

Name Type Default value Description
$innerService TokenService - -

publiccheckToken()

TokenServiceDecorator.php : 37
public checkToken(string $tokenType, string $token[, string|null $identifier = null ]) : bool

Parameters

Name Type Default value Description
$tokenType string - -
$token string - -
$identifier string|null null -

Return values

bool

publicdeleteToken()

TokenServiceDecorator.php : 75
public deleteToken(Token $token) : void

Parameters

Name Type Default value Description
$token Token - -

publicgenerateToken()

TokenServiceDecorator.php : 49
public generateToken(string $type, int $ttl[, string|null $identifier = null ][, int $tokenLength = 64 ][, TokenGeneratorInterface|null $tokenGenerator = null ]) : Token

Parameters

Name Type Default value Description
$type string - -
$ttl int - -
$identifier string|null null -
$tokenLength int 64 -
$tokenGenerator TokenGeneratorInterface|null null -

Return values

Token

publicgetToken()

TokenServiceDecorator.php : 25
public getToken(string $tokenType, string $token[, string|null $identifier = null ]) : Token

Parameters

Name Type Default value Description
$tokenType string - -
$token string - -
$identifier string|null null -

Return values

Token

publicrevokeToken()

TokenServiceDecorator.php : 65
public revokeToken(Token $token) : void

Parameters

Name Type Default value Description
$token Token - -

publicrevokeTokenByIdentifier()

TokenServiceDecorator.php : 70
public revokeTokenByIdentifier(string $tokenType, string|null $identifier) : void

Parameters

Name Type Default value Description
$tokenType string - -
$identifier string|null - -