BankIDMessageResolver
class BankIDMessageResolver implements BankIDMessageResolverInterface
Resolves user-facing messages for BankID responses based on RP Guidelines.
Traits
StringTranslationTrait
Methods
__construct(BankIDRfaResolver $rfaResolver, TranslationInterface $translation)
Constructs a new BankIDMessageResolver.
TranslatableMarkup|null
TranslatableMarkup
resolveFromErrorCode(string $errorCode)
Resolves a BankID error code to a translatable markup object.
TranslatableMarkup|null
rfaToMarkup(string|null $short_name)
Maps an RFA short code to its translatable markup.
string|null
Details
at line 27
__construct(BankIDRfaResolver $rfaResolver, TranslationInterface $translation)
Constructs a new BankIDMessageResolver.
at line 37
TranslatableMarkup|null
resolve(BankIDResponse $response)
Resolves a BankID response to a translatable markup object.
at line 54
TranslatableMarkup
resolveFromErrorCode(string $errorCode)
Resolves a BankID error code to a translatable markup object.
at line 71
protected TranslatableMarkup|null
rfaToMarkup(string|null $short_name)
Maps an RFA short code to its translatable markup.
at line 130
string|null
getMessage(BankIDResponse $response)
Gets the rendered message string for a BankID response.