GetGlobalAttribute
GetGlobalAttribute API is used to retrieve the value of a named attribute from a CA Auth ID token. Only a restricted set of attributes can be retrieved.
aa82test
Description
GetGlobalAttribute API is used to retrieve the value of a named attribute from a CA Auth ID token. Only a restricted set of attributes can be retrieved.
API Signature
SDK_STATUS GetGlobalAttribute(const std::string& authID, const std::string& attrName, std::string& attrValue) throw()
Parameters
authID [in]
Identifies Base64 encoded CA Auth ID token. Application should download this token from AM server and store in persistent storage.
attrName [in]
Specifies the attribute name for whose value to be retrived from the CA Auth ID token.
attrValue [out]
Specifies the value fetched for the named attribute retrieved from CA Auth ID token
Return Values
Return Value | Inference |
SDKSTATUS_OK | Successful |
SDKSTATUS_BADPARAM | AID is empty or attrName is empty |
SDKSTATUS_ERROR_INVALID_AID | Auth ID token is corrupt or invalid |
SDKSTATUS_ERROR_INAVLID_ATTRIBUTE | Attribute to be fetched is invalid |