Skip to Content.
Sympa Menu

mace-opensaml-users - Response::getSignature (C++)

Subject: OpenSAML user discussion

List archive

Response::getSignature (C++)


Chronological Thread 
  • From: "Brian Sheely" <>
  • To: <>
  • Subject: Response::getSignature (C++)
  • Date: Tue, 8 Jan 2008 11:59:38 -0800

FYI - the problem with the previous code was with the SYSTEMTIME struct. I don't know why I didn't just use time_t to begin with. Anyway, here's my (hopefully last) question. The response object that I create below returns the correct values for getID, getDestination, getInResponseTo, etc. Do you know what I'm doing wrong in trying to get the Signature? Thanks again!

 

    stringstream stream;

    stream << reinterpret_cast<char*>(decoded);

    XMLString::release(&decoded);

    DOMDocument* doc = XMLToolingConfig::getConfig().getParser().parse(stream);

    XMLObject* xmlObject = XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true);

    Response* response = dynamic_cast<Response*>(xmlObject);

 

    Signature* signature = response->getSignature();

 

    if (!signature)

      return NULL_SIGNATURE;

 

Brian Sheely

 




Archive powered by MHonArc 2.6.16.

Top of Page