Documentation

B2cTokenFaker
in package

Table of Contents

Properties

$exponent  : string
$fakeData  : array<string, string>
$modulus  : string
$publicKey  : string

Methods

__construct()  : mixed
getB2cTokenResponse()  : array<string, mixed>
getExponent()  : string
getModulus()  : string
getPublicKey()  : string
setFakeData()  : void
createJWT()  : string
createResponse()  : array<string, mixed>
urlsafeBase64()  : string

Properties

Methods

getB2cTokenResponse()

public getB2cTokenResponse() : array<string, mixed>
Return values
array<string, mixed>

getExponent()

public getExponent() : string
Return values
string

getModulus()

public getModulus() : string
Return values
string

getPublicKey()

public getPublicKey() : string
Return values
string

setFakeData()

public setFakeData(string $b2cId, bool $isSuccessful, string $clientId, string $issuer[, int|null $expires = null ][, int|null $notBefore = null ]) : void
Parameters
$b2cId : string
$isSuccessful : bool
$clientId : string
$issuer : string
$expires : int|null = null
$notBefore : int|null = null

createJWT()

private createJWT(array<string, string> $payload) : string
Parameters
$payload : array<string, string>
Return values
string

createResponse()

private createResponse() : array<string, mixed>
Return values
array<string, mixed>

urlsafeBase64()

private urlsafeBase64(string $string) : string
Parameters
$string : string
Return values
string

        
On this page

Search results