isApplicable
open suspend fun isApplicable(transactionData: TransactionData<PayloadT>, credential: Credential): Boolean
Determines if this transaction is applicable to the given credential.
When transaction cannot be processed, it removes a particular "use case" or credential set option from consideration. If other options are available, presentment still may succeed.
For mdoc credentials this method checks whether the MSO authorizes the device key for ISO_18013_TRANSACTION_DATA_NAMESPACE in MobileSecurityObject.deviceKeyAuthorizedNamespaces or for identifier in MobileSecurityObject.deviceKeyAuthorizedDataElements.
Return
true if transaction can be processed false if it cannot
Parameters
transactionData
transaction data being considered
credential
one of the credentials in the Document being considered