Skip to main content

SignatureHeaderJws

Represents the header of a JSON Web Signature (JWS). RFC 7515.

  • Full name: \Bloock\Entity\Authenticity\SignatureHeaderJws

Properties

alg

private string $alg

kid

private string $kid

Methods

__construct

Constructs a SignatureHeaderJws object with the specified algorithm and key identifier.

public __construct(string $alg, string $kid): mixed

Parameters:

ParameterTypeDescription
$algstring
$kidstring

fromProto

public static fromProto(\Bloock\SignatureHeaderJWS $header): \Bloock\Entity\Authenticity\SignatureHeaderJws
  • This method is static.

Parameters:

ParameterTypeDescription
$header\Bloock\SignatureHeaderJWS

getAlg

Gets the algorithm used for the JWS signature.

public getAlg(): string

getKid

Gets the key identifier associated with the JWS signature.

public getKid(): string

toProto

public toProto(): \Bloock\SignatureHeaderJWS


Automatically generated on 2024-04-02