JWEEnc Uses EnumTrait
"enc" (Encryption Algorithm) Header Parameter Values for JWE defined in RFC 7518.
Tags
Table of Contents
- $A128CBC_HS256 : JWEEnc
- Algorithm defined in "5.2.3. AES_128_CBC_HMAC_SHA_256" of RFC 7518.
- $A128GCM : JWEEnc
- AES GCM using 128 bit key.
- $A192CBC_HS384 : JWEEnc
- Algorithm defined in "5.2.4. AES_192_CBC_HMAC_SHA_384" of RFC 7518.
- $A192GCM : JWEEnc
- AES GCM using 192 bit key.
- $A256CBC_HS512 : JWEEnc
- Algorithm defined in "5.2.5. AES_256_CBC_HMAC_SHA_512" of RFC 7518.
- $A256GCM : JWEEnc
- AES GCM using 256 bit key.
- __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
$A128CBC_HS256
Algorithm defined in "5.2.3. AES_128_CBC_HMAC_SHA_256" of RFC 7518.
public
static JWEEnc
$A128CBC_HS256
Tags
$A128GCM
AES GCM using 128 bit key.
public
static JWEEnc
$A128GCM
Tags
$A192CBC_HS384
Algorithm defined in "5.2.4. AES_192_CBC_HMAC_SHA_384" of RFC 7518.
public
static JWEEnc
$A192CBC_HS384
Tags
$A192GCM
AES GCM using 192 bit key.
public
static JWEEnc
$A192GCM
Tags
$A256CBC_HS512
Algorithm defined in "5.2.5. AES_256_CBC_HMAC_SHA_512" of RFC 7518.
public
static JWEEnc
$A256CBC_HS512
Tags
$A256GCM
AES GCM using 256 bit key.
public
static JWEEnc
$A256GCM
Tags
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.