class BankIDConfig implements BankIDConfigInterface

Provides access to BankID configuration settings.

Constants

DEFAULT_EXPIRY_TIME

The default expiry time in seconds.

Methods

__construct(ConfigFactoryInterface $configFactory)

Constructs a new BankIDConfig instance.

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 26
__construct(ConfigFactoryInterface $configFactory)

Constructs a new BankIDConfig instance.

Parameters

ConfigFactoryInterface $configFactory

The configuration factory.

at line 33
bool isMockActive()

Checks whether the mock environment is active.

Return Value

bool

TRUE if mock client is active, FALSE otherwise.

at line 40
string getEnvironment()

Gets the active environment.

Return Value

string

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

at line 48
int getExpiryTime()

Gets the order expiry time in seconds.

Return Value

int

The expiry time in seconds.

at line 56
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 65
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 74
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 83
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 92
ImmutableConfig getRawConfig()

Gets the raw immutable configuration object.

Return Value

ImmutableConfig

The bankid.settings immutable configuration.