BankIDHttpClientFactory
class BankIDHttpClientFactory
Factory for creating BankID HTTP clients configured with mTLS certificates.
Methods
__construct(ClientFactory $clientFactory, BankIDConfigInterface $config, KeyRepositoryInterface $keyRepository, FileSystemInterface $fileSystem)
Constructs a new BankIDHttpClientFactory.
ClientInterface
create()
Creates an HTTP client configured with BankID certificates.
array
getHttpOptions(array $env_config, KeyPluginInterface $rp_provider, KeyPluginInterface $srv_cert_provider, string $rp_passphrase)
Prepares the HTTP options array for the BankID client.
bool
isKeyFileProvider(KeyProviderInterface $key_provider)
Check if a key provider is a FileKeyProvider.
Details
at line 32
__construct(ClientFactory $clientFactory, BankIDConfigInterface $config, KeyRepositoryInterface $keyRepository, FileSystemInterface $fileSystem)
Constructs a new BankIDHttpClientFactory.
at line 48
ClientInterface
create()
Creates an HTTP client configured with BankID certificates.
at line 101
protected array
getHttpOptions(array $env_config, KeyPluginInterface $rp_provider, KeyPluginInterface $srv_cert_provider, string $rp_passphrase)
Prepares the HTTP options array for the BankID client.
at line 127
protected bool
isKeyFileProvider(KeyProviderInterface $key_provider)
Check if a key provider is a FileKeyProvider.