Stud.IP  5.4
AccessTokenRepository Class Reference
Inheritance diagram for AccessTokenRepository:

Public Member Functions

 getNewToken (ClientEntityInterface $clientEntity, array $scopes, $userIdentifier=null)
 
 persistNewAccessToken (AccessTokenEntityInterface $accessTokenEntity)
 
 revokeAccessToken ($tokenId)
 
 isAccessTokenRevoked ($tokenId)
 

Member Function Documentation

◆ getNewToken()

getNewToken ( ClientEntityInterface  $clientEntity,
array  $scopes,
  $userIdentifier = null 
)

Create a new access token.

Parameters
ScopeEntityInterface[]$scopes
mixed$userIdentifier
Returns
AccessTokenEntityInterface

◆ isAccessTokenRevoked()

isAccessTokenRevoked (   $tokenId)

Check if the access token has been revoked.

Parameters
string$tokenId
Returns
bool Return true if this token has been revoked

◆ persistNewAccessToken()

persistNewAccessToken ( AccessTokenEntityInterface  $accessTokenEntity)

Persists a new access token to permanent storage.

Exceptions
UniqueTokenIdentifierConstraintViolationException

◆ revokeAccessToken()

revokeAccessToken (   $tokenId)

Revoke an access token.

Parameters
string$tokenId

The documentation for this class was generated from the following file: