Skip to main content

HeaderOptions


HeaderOptions

  • Full name: \Onslip360\Hawk\HeaderOptions

Properties

credentials

Credentials

public \Onslip360\Hawk\Credentials $credentials

ext

Application specific data sent via the ext attribute

public ?string $ext

timestamp

A pre-calculated timestamp

public ?int $timestamp

nonce

A pre-generated nonce

public ?string $nonce

localtimeOffsetMsec

Time offset to sync with server time (ignored if timestamp provided)

public ?int $localtimeOffsetMsec

payload

UTF-8 encoded string for body hash generation (ignored if hash provided)

public ?string $payload

contentType

Payload content-type (ignored if hash provided)

public ?string $contentType

hash

Pre-calculated payload hash

public ?string $hash

app

Oz application id

public ?string $app

dlg

Oz delegated-by application id

public ?string $dlg

Methods

__construct

public __construct(\Onslip360\Hawk\Credentials $credentials, ?string $ext = null, ?int $timestamp = null, ?string $nonce = null, ?int $localtimeOffsetMsec = null, ?string $payload = null, ?string $contentType = null, ?string $hash = null, ?string $app = null, ?string $dlg = null): mixed

Parameters:

ParameterTypeDescription
$credentials\Onslip360\Hawk\Credentials
$ext?string
$timestamp?int
$nonce?string
$localtimeOffsetMsec?int
$payload?string
$contentType?string
$hash?string
$app?string
$dlg?string


Automatically generated on 2024-11-05