Stud.IP  5.4
 All Data Structures Namespaces Files Functions Variables Groups
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 ( ClientEntityInterface  $clientEntity,
array  $scopes,
  $userIdentifier = null 
)

Create a new access token.

Parameters
ScopeEntityInterface[]$scopes
mixed$userIdentifier
Returns
AccessTokenEntityInterface
isAccessTokenRevoked (   $tokenId)

Check if the access token has been revoked.

Parameters
string$tokenId
Returns
bool Return true if this token has been revoked
persistNewAccessToken ( AccessTokenEntityInterface  $accessTokenEntity)

Persists a new access token to permanent storage.

Exceptions
UniqueTokenIdentifierConstraintViolationException
revokeAccessToken (   $tokenId)

Revoke an access token.

Parameters
string$tokenId

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