Package io.didomi.sdk.consent.mapper
Class ConsentTokenKt
-
- All Implemented Interfaces:
public final class ConsentTokenKt
-
-
Method Summary
Modifier and Type Method Description final static JSONObjecttoJSON(ConsentToken $self)Convert the token into a JSON object The token is stored in a standardized format across SDKs so we need to convert from our internal format. final static DidomiConsentTokentoDidomiConsentToken(ConsentToken $self, String userId)Convert internal consent token to a DidomiConsentToken that can be encoded / decoded -
-
Method Detail
-
toJSON
final static JSONObject toJSON(ConsentToken $self)
Convert the token into a JSON object The token is stored in a standardized format across SDKs so we need to convert from our internal format.
-
toDidomiConsentToken
final static DidomiConsentToken toDidomiConsentToken(ConsentToken $self, String userId)
Convert internal consent token to a DidomiConsentToken that can be encoded / decoded
- Parameters:
userId- as String
-
-
-
-