Rfc9068AccessTokenTrait
RFC 9068 対応のAccessTokenTrait
JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens (RFC 9068) に準拠した アクセストークンを生成するためのTrait
Table of Contents
Properties
- $jwtConfiguration : Configuration
- $privateKey : CryptKey
Methods
- __toString() : mixed
- Generate a string representation from the access token
- getClient() : ClientEntityInterface
- getExpiryDateTime() : DateTimeImmutable
- getIdentifier() : string
- getScopes() : array<string|int, ScopeEntityInterface>
- getUserIdentifier() : string|int
- initJwtConfiguration() : mixed
- Initialise the JWT Configuration.
- setPrivateKey() : mixed
- Set the private key used to encrypt this access token.
- convertToJWT() : Token
- Generate a JWT from the access token (RFC 9068 compliant)
- generateKid() : string
- 公開鍵からkid (Key ID) を生成
- getIssuer() : string
- RFC 9068準拠のアクセストークンのためのissuer URLを取得
- getResource() : string
- RFC 9068準拠のアクセストークンのためのResource URLを取得
- getScopeString() : string
- スコープを文字列形式で取得(RFC 9068準拠)
Properties
$jwtConfiguration
private
Configuration
$jwtConfiguration
$privateKey
private
CryptKey
$privateKey
Methods
__toString()
Generate a string representation from the access token
public
__toString() : mixed
getClient()
public
abstract getClient() : ClientEntityInterface
Return values
ClientEntityInterfacegetExpiryDateTime()
public
abstract getExpiryDateTime() : DateTimeImmutable
Return values
DateTimeImmutablegetIdentifier()
public
abstract getIdentifier() : string
Return values
stringgetScopes()
public
abstract getScopes() : array<string|int, ScopeEntityInterface>
Return values
array<string|int, ScopeEntityInterface>getUserIdentifier()
public
abstract getUserIdentifier() : string|int
Return values
string|intinitJwtConfiguration()
Initialise the JWT Configuration.
public
initJwtConfiguration() : mixed
setPrivateKey()
Set the private key used to encrypt this access token.
public
setPrivateKey(CryptKey $privateKey) : mixed
Parameters
- $privateKey : CryptKey
convertToJWT()
Generate a JWT from the access token (RFC 9068 compliant)
private
convertToJWT() : Token
Return values
TokengenerateKid()
公開鍵からkid (Key ID) を生成
private
generateKid() : string
Return values
stringgetIssuer()
RFC 9068準拠のアクセストークンのためのissuer URLを取得
private
getIssuer() : string
Return values
stringgetResource()
RFC 9068準拠のアクセストークンのためのResource URLを取得
private
getResource() : string
Return values
stringgetScopeString()
スコープを文字列形式で取得(RFC 9068準拠)
private
getScopeString() : string