/*
- * Copyright 2009 Internet2
+ * Copyright 2009-2010 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
DelegationExtractor::DelegationExtractor(const DOMElement* e) : m_attributeId("delegate"), m_formatter("$Name")
{
if (e) {
- const XMLCh* a = e->getAttributeNS(NULL, attributeId);
+ const XMLCh* a = e->getAttributeNS(nullptr, attributeId);
if (a && *a) {
auto_ptr_char temp(a);
m_attributeId = temp.get();
}
- a = e->getAttributeNS(NULL, formatter);
+ a = e->getAttributeNS(nullptr, formatter);
if (a && *a) {
auto_ptr_char temp(a);
m_formatter = temp.get();
continue;
}
- saml2::NameID* n = NULL;
+ saml2::NameID* n = nullptr;
if ((*d)->getEncryptedID()) {
CredentialResolver* cr = application.getCredentialResolver();
if (!cr) {
try {
const XMLCh* recipient = application.getRelyingParty(
- issuer ? dynamic_cast<EntityDescriptor*>(issuer->getParent()) : NULL
+ issuer ? dynamic_cast<EntityDescriptor*>(issuer->getParent()) : nullptr
)->getXMLString("entityID").second;
Locker credlocker(cr);
if (issuer) {
}
if (n) {
- DDF val = DDF(NULL).structure();
+ DDF val = DDF(nullptr).structure();
if ((*d)->getConfirmationMethod()) {
auto_ptr_char temp((*d)->getConfirmationMethod());
val.addmember("ConfirmationMethod").string(temp.get());