Package com.creditcall.chipdnamobile
Class CardToken
java.lang.Object
com.creditcall.chipdnamobile.CardToken
- All Implemented Interfaces:
android.os.Parcelable
Contains data representing information about a generated card token.
- Author:
- Creditcall Ltd
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the algorithm used to generate the token.getKey()Get the key identifier used in token generation.getValue()Get the card token value.voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
CardToken
public CardToken(android.os.Parcel in)
-
-
Method Details
-
getAlgorithm
Get the algorithm used to generate the token.- Returns:
- The algorithm (e.g., "HS256" for HMAC-SHA256, "A128CMAC" for AES-CMAC)
-
getKey
Get the key identifier used in token generation.- Returns:
- The name of the key used as the secret
-
getValue
Get the card token value.- Returns:
- The token value as a base64 string
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-