interface BankIDConfigInterface

Interface for BankID configuration service.

Methods

bool
isMockActive()

Checks whether the mock environment is active.

string
getEnvironment()

Gets the active environment.

int
getExpiryTime()

Gets the order expiry time in seconds.

string
getApiBaseUrl(string|null $environment = NULL)

Gets the API base URL for an environment.

string|null
getRpCertificateKey(string|null $environment = NULL)

Gets the RP certificate key name for an environment.

string|null
getRpPassphraseKey(string|null $environment = NULL)

Gets the RP certificate passphrase key name for an environment.

string|null
getIssuerCertificateKey(string|null $environment = NULL)

Gets the server certificate issuer key name for an environment.

ImmutableConfig
getRawConfig()

Gets the raw immutable configuration object.

Details

at line 20
bool isMockActive()

Checks whether the mock environment is active.

Return Value

bool

TRUE if mock client is active, FALSE otherwise.

at line 28
string getEnvironment()

Gets the active environment.

Return Value

string

The active environment name ('test', 'prod', or 'mock').

at line 36
int getExpiryTime()

Gets the order expiry time in seconds.

Return Value

int

The expiry time in seconds.

at line 47
string getApiBaseUrl(string|null $environment = NULL)

Gets the API base URL for an environment.

Parameters

string|null $environment

Optional environment override. Defaults to active environment.

Return Value

string

The API base URL.

at line 58
string|null getRpCertificateKey(string|null $environment = NULL)

Gets the RP certificate key name for an environment.

Parameters

string|null $environment

Optional environment override. Defaults to active environment.

Return Value

string|null

The key name or NULL if not configured.

at line 69
string|null getRpPassphraseKey(string|null $environment = NULL)

Gets the RP certificate passphrase key name for an environment.

Parameters

string|null $environment

Optional environment override. Defaults to active environment.

Return Value

string|null

The key name or NULL if not configured.

at line 80
string|null getIssuerCertificateKey(string|null $environment = NULL)

Gets the server certificate issuer key name for an environment.

Parameters

string|null $environment

Optional environment override. Defaults to active environment.

Return Value

string|null

The key name or NULL if not configured.

at line 88
ImmutableConfig getRawConfig()

Gets the raw immutable configuration object.

Return Value

ImmutableConfig

The bankid.settings immutable configuration.