Documentation

JWEAlg Uses EnumTrait

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

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

RFC 7518, 4.1. "alg" (Algorithm) Header Parameter Values for JWE

Table of Contents

$A128GCMKW  : JWEAlg
Key wrapping with AES GCM using 128 bit key.
$A128KW  : JWEAlg
AES Key Wrap with default initial value using 128 bit key.
$A192GCMKW  : JWEAlg
Key wrapping with AES GCM using 192 bit key.
$A192KW  : JWEAlg
AES Key Wrap with default initial value using 192 bit key.
$A256GCMKW  : JWEAlg
Key wrapping with AES GCM using 256 bit key.
$A256KW  : JWEAlg
AES Key Wrap with default initial value using 256 bit key.
$DIR  : JWEAlg
Direct use of a shared symmetric key as the CEK.
$ECDH_ES  : JWEAlg
Elliptic Curve Diffie-Hellman Ephemeral Static key agreement using Concat KDF.
$ECDH_ES_A128KW  : JWEAlg
ECDH-ES using Concat KDF and CEK wrapped with "A128KW".
$ECDH_ES_A192KW  : JWEAlg
ECDH-ES using Concat KDF and CEK wrapped with "A192KW".
$ECDH_ES_A256KW  : JWEAlg
ECDH-ES using Concat KDF and CEK wrapped with "A256KW".
$PBES2_HS256_A128KW  : JWEAlg
PBES2 with HMAC SHA-256 and "A128KW".
$PBES2_HS384_A192KW  : JWEAlg
PBES2 with HMAC SHA-384 and "A192KW".
$PBES2_HS512_A256KW  : JWEAlg
PBES2 with HMAC SHA-512 and "A256KW".
$RSA1_5  : JWEAlg
RSAES-PKCS1-V1_5.
$RSA_OAEP  : JWEAlg
RSAES OAEP using default parameters.
$RSA_OAEP_256  : JWEAlg
RSAES OAEP using SHA-256 and MGF1 with SHA-256.
__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

$A128GCMKW

Key wrapping with AES GCM using 128 bit key.

public static JWEAlg $A128GCMKW
Tags
static

$A128KW

AES Key Wrap with default initial value using 128 bit key.

public static JWEAlg $A128KW
Tags
static

$A192GCMKW

Key wrapping with AES GCM using 192 bit key.

public static JWEAlg $A192GCMKW
Tags
static

$A192KW

AES Key Wrap with default initial value using 192 bit key.

public static JWEAlg $A192KW
Tags
static

$A256GCMKW

Key wrapping with AES GCM using 256 bit key.

public static JWEAlg $A256GCMKW
Tags
static

$A256KW

AES Key Wrap with default initial value using 256 bit key.

public static JWEAlg $A256KW
Tags
static

$DIR

Direct use of a shared symmetric key as the CEK.

public static JWEAlg $DIR
Tags
static

$ECDH_ES

Elliptic Curve Diffie-Hellman Ephemeral Static key agreement using Concat KDF.

public static JWEAlg $ECDH_ES
Tags
static

$ECDH_ES_A128KW

ECDH-ES using Concat KDF and CEK wrapped with "A128KW".

public static JWEAlg $ECDH_ES_A128KW
Tags
static

$ECDH_ES_A192KW

ECDH-ES using Concat KDF and CEK wrapped with "A192KW".

public static JWEAlg $ECDH_ES_A192KW
Tags
static

$ECDH_ES_A256KW

ECDH-ES using Concat KDF and CEK wrapped with "A256KW".

public static JWEAlg $ECDH_ES_A256KW
Tags
static

$PBES2_HS256_A128KW

PBES2 with HMAC SHA-256 and "A128KW".

public static JWEAlg $PBES2_HS256_A128KW
Tags
static

$PBES2_HS384_A192KW

PBES2 with HMAC SHA-384 and "A192KW".

public static JWEAlg $PBES2_HS384_A192KW
Tags
static

$PBES2_HS512_A256KW

PBES2 with HMAC SHA-512 and "A256KW".

public static JWEAlg $PBES2_HS512_A256KW
Tags
static

$RSA1_5

RSAES-PKCS1-V1_5.

public static JWEAlg $RSA1_5
Tags
static

$RSA_OAEP

RSAES OAEP using default parameters.

public static JWEAlg $RSA_OAEP
Tags
static

$RSA_OAEP_256

RSAES OAEP using SHA-256 and MGF1 with SHA-256.

public static JWEAlg $RSA_OAEP_256
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