prepareForAssignment(m_Signature,sig);
*m_pos_Signature=m_Signature=sig;
// Sync content reference back up.
- if (m_Signature && (!m_RequestID || *m_RequestID!=chDigit_0))
+ if (m_Signature)
m_Signature->setContentReference(new opensaml::ContentReference(*this));
}
MARSHALL_INTEGER_ATTRIB(MinorVersion,MINORVERSION,NULL);
if (!m_RequestID)
const_cast<RequestAbstractTypeImpl*>(this)->m_RequestID=SAMLConfig::getConfig().generateIdentifier();
- domElement->setAttributeNS(NULL, REQUESTID_ATTRIB_NAME, m_RequestID);\r
- if (*m_MinorVersion!=chDigit_0)\r
- domElement->setIdAttributeNS(NULL, REQUESTID_ATTRIB_NAME);\r
+ domElement->setAttributeNS(NULL, REQUESTID_ATTRIB_NAME, m_RequestID);
+ if (*m_MinorVersion!=chDigit_0)
+ domElement->setIdAttributeNS(NULL, REQUESTID_ATTRIB_NAME);
if (!m_IssueInstant) {
const_cast<RequestAbstractTypeImpl*>(this)->m_IssueInstantEpoch=time(NULL);
const_cast<RequestAbstractTypeImpl*>(this)->m_IssueInstant=new DateTime(m_IssueInstantEpoch);
prepareForAssignment(m_Signature,sig);
*m_pos_Signature=m_Signature=sig;
// Sync content reference back up.
- if (m_Signature && (!m_ResponseID || *m_ResponseID!=chDigit_0))
+ if (m_Signature)
m_Signature->setContentReference(new opensaml::ContentReference(*this));
}
MARSHALL_INTEGER_ATTRIB(MinorVersion,MINORVERSION,NULL);
if (!m_ResponseID)
const_cast<ResponseAbstractTypeImpl*>(this)->m_ResponseID=SAMLConfig::getConfig().generateIdentifier();
- domElement->setAttributeNS(NULL, RESPONSEID_ATTRIB_NAME, m_ResponseID);\r
- if (*m_MinorVersion!=chDigit_0)\r
- domElement->setIdAttributeNS(NULL, RESPONSEID_ATTRIB_NAME);\r
+ domElement->setAttributeNS(NULL, RESPONSEID_ATTRIB_NAME, m_ResponseID);
+ if (*m_MinorVersion!=chDigit_0)
+ domElement->setIdAttributeNS(NULL, RESPONSEID_ATTRIB_NAME);
MARSHALL_STRING_ATTRIB(InResponseTo,INRESPONSETO,NULL);
if (!m_IssueInstant) {
const_cast<ResponseAbstractTypeImpl*>(this)->m_IssueInstantEpoch=time(NULL);