baserCMS クラスリファレンス

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

Methods

getClient()

public abstract getClient() : ClientEntityInterface
Return values
ClientEntityInterface

getExpiryDateTime()

public abstract getExpiryDateTime() : DateTimeImmutable
Return values
DateTimeImmutable

getScopes()

public abstract getScopes() : array<string|int, ScopeEntityInterface>
Return values
array<string|int, ScopeEntityInterface>

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
Token

generateKid()

公開鍵からkid (Key ID) を生成

private generateKid() : string
Return values
string

getIssuer()

RFC 9068準拠のアクセストークンのためのissuer URLを取得

private getIssuer() : string
Return values
string

getResource()

RFC 9068準拠のアクセストークンのためのResource URLを取得

private getResource() : string
Return values
string

getScopeString()

スコープを文字列形式で取得(RFC 9068準拠)

private getScopeString() : string
Return values
string
On this page

Search results