SignerFactory
Table of Contents
-
$algMap
: array<string|int, mixed>
-
assign()
: void
-
build()
: Signer
$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]
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
-
-
throws
-
Exception
Return values
Signer
—