Class Token
- java.lang.Object
-
- com.thalesgroup.tpcsdk.model.Token
-
public class Token extends Object
Token class is token data received in the getTokenList TSH apiTSHProxy.getTokenList(com.thalesgroup.tpcsdk.model.CardInfo, com.thalesgroup.tpcsdk.manager.listener.TPCSDKListener<com.thalesgroup.tpcsdk.model.Token[]>)id- Unique identifier of the token allocated by the TSP Schemestate- State of the token. The value could be ACTIVE, SUSPENDED, DELETED and PENDING_IDVsuffix- Last 4 digits of the tokenexpiryDate- Expiration date of token. Format is 'MMYY'device- Device informationtokenRequestor- Token requester information, which only contains identifier & name (MasterCard only).
Token class is also returned from getToken TPC apiisOnCurrentDevice- Is token on the current device(configured with GooglePay or SamsungPay)PushProvisioning.getToken(GetTokenInput, TPCSDKListener)id- Unique identifier of the token allocated by the TSP Schemestate- State of the token.
Google Pay states
CardDigitizationStatus.GOOGLE_PAY_TOKEN_STATE_UNTOKENIZED
CardDigitizationStatus.GOOGLE_PAY_TOKEN_STATE_PENDING
CardDigitizationStatus.GOOGLE_PAY_TOKEN_STATE_NEEDS_IDENTITY_VERIFICATION
CardDigitizationStatus.GOOGLE_PAY_TOKEN_STATE_SUSPENDED
CardDigitizationStatus.GOOGLE_PAY_TOKEN_STATE_ACTIVE
CardDigitizationStatus.GOOGLE_PAY_TOKEN_STATE_FELICA_PENDING_PROVISIONING
Samsung Pay states
CardDigitizationStatus.SAMSUNG_PAY_ACTIVE
CardDigitizationStatus.SAMSUNG_PAY_DISPOSED
CardDigitizationStatus.SAMSUNG_PAY_EXPIRED
CardDigitizationStatus.SAMSUNG_PAY_PENDING_ENROLLED
CardDigitizationStatus.SAMSUNG_PAY_PENDING_PROVISION
CardDigitizationStatus.SAMSUNG_PAY_SUSPENDED
CardDigitizationStatus.SAMSUNG_PAY_PENDING_ACTIVATIONsuffix- Last 4 digits of the tokenexpiryDate- nulldevice- nulltokenRequestor- nullisOnCurrentDevice- Is token on the current device- Since:
- 1.0
- Version:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description Token()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DevicegetDevice()StringgetExpiryDate()StringgetId()StringgetState()StringgetSuffix()TokenRequestorgetTokenRequestor()booleanisOnCurrentDevice()Identify if the token is on current device or not.voidsetDevice(Device device)voidsetExpiryDate(String expiryDate)voidsetId(String id)voidsetIsOnCurrentDevice(boolean isOnCurrentDevice)voidsetState(String state)voidsetSuffix(String suffix)voidsetTokenRequestor(TokenRequestor tokenRequestor)
-
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getState
public String getState()
-
setState
public void setState(String state)
-
getSuffix
public String getSuffix()
-
setSuffix
public void setSuffix(String suffix)
-
getExpiryDate
public String getExpiryDate()
-
setExpiryDate
public void setExpiryDate(String expiryDate)
-
getDevice
public Device getDevice()
-
setDevice
public void setDevice(Device device)
-
getTokenRequestor
public TokenRequestor getTokenRequestor()
-
setTokenRequestor
public void setTokenRequestor(TokenRequestor tokenRequestor)
-
isOnCurrentDevice
public boolean isOnCurrentDevice()
Identify if the token is on current device or not.- Since:
- 1.11.0
-
setIsOnCurrentDevice
public void setIsOnCurrentDevice(boolean isOnCurrentDevice)
-
-