public interface ConsentManagementService
|Modifier and Type||Method and Description|
Indicates that consent has been granted.
Indicates that consent has been revoked.
void onConsentCreated(io.token.proto.common.consent.ConsentProtos.Consent consent)
Consent can be one of two types: "payment" and "information access." If the consent is a
payment then the
Payment field will contain the transfer amount and total lifetime
value of the payment authorization as well as the transfer destinations. If the consent is
for information access then the
Information field will contain the list of resources
that are being accessed.
Consent will always contain the BankAccount of the user, as well as their Token member ID and the ID of the Token linked to the consent.
consent- the consent that was granted
void onConsentRevoked(java.lang.String tokenId)
tokenId- Token ID of the consent being revoked