GetCardAttribute
GetCardAttribute(cardString, attrName, attrValue) returns the attribute value present in the card string. It gets the value of card attributes for named attribute provided by application. It is convenient for application developer to get value of the card attribute without parsing card string.
aa821test
Description
GetCardAttribute(cardString, attrName, attrValue) returns the attribute value present in the card string. It gets the value of card attributes for named attribute provided by application. It is convenient for application developer to get value of the card attribute without parsing card string.
API Signature
CAMOBILEOTPCRYPTOSDK_API SDK_STATUS GetCardAttributeValue(const std::string& cardString,const std::string& attrName,std::string& attrValue)throw()
Parameters
cardString [in]
Specifies the card string retrieved from the persistent storage.
attrName [in]
Specifies the name of the attribute for which card attribute value needs to be fetched.
attrValue [out]
Specifies the value retrieved from the card string.
Return Values
Return Value | Inference |
SDKSTATUS_OK | Successful |
SDKSTATUS_BADPARAM | CardString is empty |
SDKSTATUS_ERROR_INVALID_CARDSTRING | CardString is corrupt or invalid |
SDKSTATUS_ATTR_NOT_FOUND | Card attribute is not present |
Remarks
Any special case for APIs input parameter or return values or special.