Package com.creditcall.chipdnamobile
Class CardToken
- java.lang.Object
-
- com.creditcall.chipdnamobile.CardToken
-
- All Implemented Interfaces:
android.os.Parcelable
public class CardToken extends java.lang.Object implements android.os.ParcelableContains data representing information about a generated card token.- Author:
- Creditcall Ltd
-
-
Constructor Summary
Constructors Constructor Description CardToken(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()java.lang.StringgetAlgorithm()Get the algorithm used to generate the token.java.lang.StringgetKey()Get the key identifier used in token generation.java.lang.StringgetValue()Get the card token value.voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<CardToken> CREATOR
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
Get the algorithm used to generate the token.- Returns:
- The algorithm (e.g., "HS256" for HMAC-SHA256, "A128CMAC" for AES-CMAC)
-
getKey
public java.lang.String getKey()
Get the key identifier used in token generation.- Returns:
- The name of the key used as the secret
-
getValue
public java.lang.String 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
-
-