Class CardToken

java.lang.Object
com.creditcall.chipdnamobile.CardToken
All Implemented Interfaces:
android.os.Parcelable

public class CardToken extends Object implements android.os.Parcelable
Contains data representing information about a generated card token.
Author:
Creditcall Ltd
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<CardToken>
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CardToken(android.os.Parcel in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    Get the algorithm used to generate the token.
    Get the key identifier used in token generation.
    Get the card token value.
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<CardToken> CREATOR
  • Constructor Details

    • CardToken

      public CardToken(android.os.Parcel in)
  • Method Details

    • getAlgorithm

      public 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 String getKey()
      Get the key identifier used in token generation.
      Returns:
      The name of the key used as the secret
    • getValue

      public 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:
      writeToParcel in interface android.os.Parcelable
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable