Token model
Parse Token issued by the IAMClient and provide some helper functions
internal | |
---|---|
package |
NextEvent\PHPSDK\Service |
__construct(string $accessToken, integer $expiresIn, string $scope, string $tokenType)
string
integer
seconds
string
string
fromString(string $str) : \NextEvent\PHPSDK\Model\Token|null
getAccessToken() : string
string
getAuthorizationHeader() : string
string
getExpiresAt() : integer
integer
Unix timestamp
getScope() : string
string
getTokenType() : string
string
isExpired() : boolean
boolean
True if expired and no longer valid
toString() : string
string