Is there a way in the C++ api to get the owner (signer name) of an agent

I need to be able to check, in C++, who signed the agent I want to run (to avoid that it is signed with the wrong ID)Can I do this?

Subject: Is there a way in the C++ api to get the owner (signer name) of an agent

For those who need this, I useagent.GetSigner();