SignChallengeWithAuthID
SignChallengeWithAID API is used to sign a challenge obtained from AM Server with the pin-camouflaged private key that is stored within the passed in CA Auth ID token. The private key de-camouflaged using the pin is used to sign the challenge.
aa82test
Description
SignChallengeWithAID API is used to sign a challenge obtained from AM Server with the pin-camouflaged private key that is stored within the passed in CA Auth ID token. The private key de-camouflaged using the pin is used to sign the challenge.
API Signature
SDK_STATUS SignChallengeWithAuthID(const std::string& challenge, const std::string& userPIN, const std::string& authID, std::string &signedChallenge) throw()
Parameters
challenge [in]
Identifies Base64 encoded challenge value provided by application. Application receives this challenge from AM Server.
userPIN [in]
Specifies the user PIN provided by application. SDK does not perform any validation for pin length. Application developer validates pin value.
authID [in]
Identifies Base64 encoded CA Auth ID token. Application downloads this token from AM server and stored in persistent storage.
signedChallenge [out]
Identifies Base64 encoded signed challenge returned by the API.
Return Values
Return Value | Inference |
SDKSTATUS_OK | Successful |
SDKSTATUS_BADPARAM | AID is empty or challenge is empty |
SDKSTATUS_ERROR_INVALID_AID | Auth ID token is corrupt or invalid |