Class CardToken

  • All Implemented Interfaces:
    android.os.Parcelable

    public class CardToken
    extends java.lang.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 java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<CardToken> CREATOR  
      • 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()  
      java.lang.String getAlgorithm()
      Get the algorithm used to generate the token.
      java.lang.String getKey()
      Get the key identifier used in token generation.
      java.lang.String getValue()
      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 Detail

      • CREATOR

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

      • CardToken

        public CardToken​(android.os.Parcel in)
    • 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:
        writeToParcel in interface android.os.Parcelable
      • describeContents

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