Documentation

SignerFactory
in package

Table of Contents

$algMap  : array<string|int, mixed>
assign()  : void
build()  : Signer

Properties

$algMap

private static array<string|int, mixed> $algMap = ['HS256' => \Corviz\Jwt\Signer\Hmac\Sha\Sha256Signer::class, 'HS384' => \Corviz\Jwt\Signer\Hmac\Sha\Sha384Signer::class, 'HS512' => \Corviz\Jwt\Signer\Hmac\Sha\Sha512Signer::class]

Methods

assign()

public static assign(string $alg, string $className) : void
Parameters
$alg : string
$className : string
Return values
void

build()

public static build(string $alg) : Signer
Parameters
$alg : string
Tags
throws
Exception
Return values
Signer

Search results