m_defaultScope=defaultScope;
while (scopes.hasNext())
- m_values.push_back(*scopes.next());
+ m_values.push_back(scopes.next());
}
ScopedAttribute::ScopedAttribute(IDOM_Element* e) : SAMLAttribute(e)
this_scope=m_defaultScope.c_str();
while (domains.hasNext())
- if (*domains.next()==this_scope)
+ if (domains.next()==this_scope)
return true;
return false;
}
m_receiver = XMLString::replicate(receiver);
while (policies.hasNext())
- m_policies.push_back(XMLString::replicate(*policies.next()));
+ m_policies.push_back(XMLString::replicate(policies.next()));
}
ShibPOSTProfile::ShibPOSTProfile(const Iterator<const XMLCh*>& policies, const XMLCh* issuer)
m_issuer = XMLString::replicate(issuer);
while (policies.hasNext())
- m_policies.push_back(XMLString::replicate(*policies.next()));
+ m_policies.push_back(XMLString::replicate(policies.next()));
}
ShibPOSTProfile::~ShibPOSTProfile()
Iterator<xstring> hsNames = m_mapper->getHandleServiceNames(originSite);
bool bFound = false;
while (!bFound && hsNames.hasNext())
- if (!XMLString::compareString(hsNames.next()->c_str(),handleService))
+ if (!XMLString::compareString(hsNames.next().c_str(),handleService))
bFound = true;
if (!bFound)
throw SAMLException(SAMLException::RESPONDER, "ShibPOSTProfile::accept() detected an untrusted HS for the origin site");
SAMLResponse* r = SAMLPOSTProfile::prepare(recipient,m_issuer,Iterator<const XMLCh*>(m_policies),name,
nameQualifier,NULL,subjectIP,authMethod,authDateTime,bindings);
if (assertionKey)
- (*r->getAssertions().next())->sign(m_algorithm,*assertionKey,assertionCert);
+ (r->getAssertions().next())->sign(m_algorithm,*assertionKey,assertionCert);
r->sign(m_algorithm,responseKey,responseCert);
ShibPOSTProfile* ShibPOSTProfileFactory::getInstance(const Iterator<const XMLCh*>& policies, IOriginSiteMapper* mapper,
const XMLCh* receiver, int ttlSeconds)
{
- if (policies.size()!=1 || XMLString::compareString(Constants::POLICY_CLUBSHIB,*policies.next()))
+ if (policies.size()!=1 || XMLString::compareString(Constants::POLICY_CLUBSHIB,policies.next()))
return NULL;
policies.reset();
return new ClubShibPOSTProfile(policies,mapper,receiver,ttlSeconds);
ShibPOSTProfile* ShibPOSTProfileFactory::getInstance(const Iterator<const XMLCh*>& policies, const XMLCh* issuer)
{
- if (policies.size()!=1 || XMLString::compareString(Constants::POLICY_CLUBSHIB,*policies.next()))
+ if (policies.size()!=1 || XMLString::compareString(Constants::POLICY_CLUBSHIB,policies.next()))
return NULL;
policies.reset();
return new ClubShibPOSTProfile(policies,issuer);
Iterator<SAMLAssertion*> i=resp->getAssertions();
if (i.hasNext())
{
- SAMLAssertion* a=*i.next();
+ SAMLAssertion* a=i.next();
cout << "Issuer: "; xmlout(cout,a->getIssuer()); cout << endl;
const XMLDateTime* exp=a->getNotOnOrAfter();
cout << "Expires: ";
Iterator<SAMLStatement*> j=a->getStatements();
if (j.hasNext())
{
- SAMLAttributeStatement* s=dynamic_cast<SAMLAttributeStatement*>(*j.next());
+ SAMLAttributeStatement* s=dynamic_cast<SAMLAttributeStatement*>(j.next());
if (s)
{
const SAMLSubject* sub=s->getSubject();
Iterator<SAMLAttribute*> attrs=s->getAttributes();
while (attrs.hasNext())
{
- SAMLAttribute* attr=*attrs.next();
+ SAMLAttribute* attr=attrs.next();
cout << "Attribute Name: "; xmlout(cout,attr->getName()); cout << endl;
cout << "Attribute Type: {";
xmlout(cout,attr->getType()->getNamespaceURI());
while (vals.hasNext())
{
cout << "Attribute Value: ";
- xmlout(cout,vals.next()->c_str());
+ xmlout(cout,vals.next().c_str());
cout << endl;
}
}