Documentation

JWSAlg Uses EnumTrait

"alg" (Algorithm) Header Parameter Values for JWS defined in RFC 7518.

Tags
see
https://tools.ietf.org/html/rfc7518#section-3.1

RFC 7518, 3.1. "alg" (Algorithm) Header Parameter Values for JWS

Table of Contents

$ES256  : JWSAlg
ECDSA using P-256 and SHA-256.
$ES384  : JWSAlg
ECDSA using P-384 and SHA-384.
$ES512  : JWSAlg
ECDSA using P-521 and SHA-512.
$HS256  : JWSAlg
HMAC using SHA-256.
$HS384  : JWSAlg
HMAC using SHA-384.
$HS512  : JWSAlg
HMAC using SHA-512.
$NONE  : JWSAlg
No digital signature or MAC performed.
$PS256  : JWSAlg
RSASSA-PSS using SHA-256 and MGF1 with SHA-256.
$PS384  : JWSAlg
RSASSA-PSS using SHA-384 and MGF1 with SHA-384.
$PS512  : JWSAlg
RSASSA-PSS using SHA-512 and MGF1 with SHA-512.
$RS256  : JWSAlg
RSASSA-PKCS-v1_5 using SHA-256.
$RS384  : JWSAlg
RSASSA-PKCS-v1_5 using SHA-384.
$RS512  : JWSAlg
RSASSA-PKCS-v1_5 using SHA-512.
__toString()  : string
Get the name of this instance.
name()  : string
Get the name of this instance.
valueOf()  : static
Get an instance of this class that the given argument represents.
values()  : array<string|int, mixed>
Get the list of public class variables listed in this class.

Properties

$ES256

ECDSA using P-256 and SHA-256.

public static JWSAlg $ES256
Tags
static

$ES384

ECDSA using P-384 and SHA-384.

public static JWSAlg $ES384
Tags
static

$ES512

ECDSA using P-521 and SHA-512.

public static JWSAlg $ES512
Tags
static

$HS256

HMAC using SHA-256.

public static JWSAlg $HS256
Tags
static

$HS384

HMAC using SHA-384.

public static JWSAlg $HS384
Tags
static

$HS512

HMAC using SHA-512.

public static JWSAlg $HS512
Tags
static

$NONE

No digital signature or MAC performed.

public static JWSAlg $NONE
Tags
static

$PS256

RSASSA-PSS using SHA-256 and MGF1 with SHA-256.

public static JWSAlg $PS256
Tags
static

$PS384

RSASSA-PSS using SHA-384 and MGF1 with SHA-384.

public static JWSAlg $PS384
Tags
static

$PS512

RSASSA-PSS using SHA-512 and MGF1 with SHA-512.

public static JWSAlg $PS512
Tags
static

$RS256

RSASSA-PKCS-v1_5 using SHA-256.

public static JWSAlg $RS256
Tags
static

$RS384

RSASSA-PKCS-v1_5 using SHA-384.

public static JWSAlg $RS384
Tags
static

$RS512

RSASSA-PKCS-v1_5 using SHA-512.

public static JWSAlg $RS512
Tags
static

Methods

__toString()

Get the name of this instance.

public __toString() : string
Return values
string

The name of this instance.

name()

Get the name of this instance.

public name() : string
Return values
string

The name of this instance.

valueOf()

Get an instance of this class that the given argument represents.

public static valueOf(mixed $value) : static

If the given argument is an instance of this class, the instance itself is returned.

Otherwise, if the given argument is null, null is returned.

Otherwise, if the type of the given argument is not string, an InvalidArgumentException is returned.

Otherwise, a class variable whose name is equal to the given argument is looked up. If found, the instance is returned. If not found, an InvalidArgumentException is thrown.

Parameters
$value : mixed

A string that represents an instance of this class, or an instance of this class, or null.

Return values
static

An instance of this class.

values()

Get the list of public class variables listed in this class.

public static values() : array<string|int, mixed>
Return values
array<string|int, mixed>

Instances of this class which are defined as public class variables.

Search results