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:
Parameter | Type | Description |
---|---|---|
$alg | string | |
$kid | string |
fromProto
public static fromProto(\Bloock\SignatureHeaderJWS $header): \Bloock\Entity\Authenticity\SignatureHeaderJws
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$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