Oihana PHP Enums

JwkUse uses ConstantsTrait

Enumeration of JSON Web Key public-key use values (the `use` member of a JWK).

The use parameter declares the intended use of the public key (RFC 7517 §4.2). It is advisory and mutually informative with JwkKeyOperation (key_ops); applications should not set both inconsistently.

Example:

$jwk[ JwkParameter::USE ] = JwkUse::SIG ;

References:

  • RFC 7517 §4.2 — use values (sig, enc)
  • IANA JSON Web Key Use registry
Tags
see
JwkParameter::USE
JwkKeyOperation
author

Marc Alcaraz (ekameleon)

since
1.1.0

Table of Contents

Constants

ENC  : string = 'enc'
`enc` — Key is used to encrypt / decrypt content (RFC 7517 §4.2).
SIG  : string = 'sig'
`sig` — Key is used to verify / produce signatures (RFC 7517 §4.2).

Constants

ENC

`enc` — Key is used to encrypt / decrypt content (RFC 7517 §4.2).

public string ENC = 'enc'

SIG

`sig` — Key is used to verify / produce signatures (RFC 7517 §4.2).

public string SIG = 'sig'
On this page

Search results