class BankIDRequestRequirements

Upstream API request requirements value object.

Defines the conditional requirements sent in the BankID API request, such as required certificate policies, card reader type, or expected personal identity number.

Methods

__construct(string|null $personalNumber = NULL, string|null $cardReader = NULL, array|null $certificatePolicies = NULL, bool|null $mrtd = NULL, bool|null $pinCode = NULL, bool|null $stepUp = NULL)

Constructs a BankIDRequestRequirements object.

string|null
getPersonalNumber()

Get the personal number requirement.

array|null
getPayload()

Convert to an api payload array.

Details

at line 34
__construct(string|null $personalNumber = NULL, string|null $cardReader = NULL, array|null $certificatePolicies = NULL, bool|null $mrtd = NULL, bool|null $pinCode = NULL, bool|null $stepUp = NULL)

Constructs a BankIDRequestRequirements object.

Parameters

string|null $personalNumber

The personal identity number allowed to confirm the identification.

string|null $cardReader

The card reader type \Drupal\bankid\BankIDRequestDataInterface.

array|null $certificatePolicies

The certificate policies.

bool|null $mrtd

Whether the user needs to confirm their identity with a valid Swedish passport or national ID card to complete the order.

bool|null $pinCode

Users are required to confirm the order with their security code even if they have biometrics activated.

bool|null $stepUp

Whether the user needs to perform a step up.

at line 49
string|null getPersonalNumber()

Get the personal number requirement.

Return Value

string|null

The personal number.

at line 60
array|null getPayload()

Convert to an api payload array.

Return Value

array|null

The requirement as an api payload array or NULL if no requirements are set.