BankIDSession
class BankIDSession
Service to manage BankID session data.
Properties
| protected PrivateTempStore | $privateTempStore | The private temporary store. |
|
| protected KeyValueStoreExpirableInterface | $keyValueStore | The key value store. |
Methods
__construct(PrivateTempStoreFactory $tempStoreFactory, KeyValueExpirableFactoryInterface $keyValueFactory, BankIDCasePluginManager $bankIDCaseManager)
Constructs a new BankIDSession object.
string
BankIDCaseData|null
getCaseData(string|null $configuration_hash)
Get case data.
BankIDCaseInterface|null
loadCasePlugin(string|null $configuration_hash)
Load a case plugin.
void
setData(string $key, string $type, mixed $data)
Save data to the private temp store.
mixed
getData(string $key, string $type)
Retrieve data from the private temp store.
bool
isPersistedType(string $type)
Check if a type is "persisted" type.
void
deleteKey(string $key)
Delete a key from the private temp store.
Details
at line 41
__construct(PrivateTempStoreFactory $tempStoreFactory, KeyValueExpirableFactoryInterface $keyValueFactory, BankIDCasePluginManager $bankIDCaseManager)
Constructs a new BankIDSession object.
at line 61
string
registerCase(BankIDCaseData $case)
Register a case.
at line 87
BankIDCaseData|null
getCaseData(string|null $configuration_hash)
Get case data.
at line 131
BankIDCaseInterface|null
loadCasePlugin(string|null $configuration_hash)
Load a case plugin.
at line 161
void
setData(string $key, string $type, mixed $data)
Save data to the private temp store.
at line 185
mixed
getData(string $key, string $type)
Retrieve data from the private temp store.
at line 208
protected bool
isPersistedType(string $type)
Check if a type is "persisted" type.
NOTE: "Persisted" data will be kept until temp store clear itself.
at line 227
void
deleteKey(string $key)
Delete a key from the private temp store.
NOTE: "Persisted" data will be kept until temp store clear itself.