#include "saml2/metadata/MetadataCredentialContext.h"
#include "saml2/metadata/MetadataCredentialCriteria.h"
-#include <log4cpp/Category.hh>
+#include <xmltooling/logging.h>
#include <xmltooling/encryption/Encrypter.h>
#include <xmltooling/encryption/Decrypter.h>
const XMLCh* algorithm
)
{
- if (recipients.size()==1)
- return encrypt(xmlObject, *recipients.front().first, *recipients.front().second, compact, algorithm);
-
// With multiple recipients, we have to generate an encryption key and then multicast it,
// so we need to split the encryption and key wrapping steps.
if (!algorithm || !*algorithm)
const Credential* KEK = r->first->resolve(r->second);
if (!KEK) {
auto_ptr_char name(dynamic_cast<const EntityDescriptor*>(r->second->getRole().getParent())->getEntityID());
- log4cpp::Category::getInstance(SAML_LOGCAT".Encryption").warn("No key encryption credential found for (%s).", name.get());
+ logging::Category::getInstance(SAML_LOGCAT".Encryption").warn("No key encryption credential found for (%s).", name.get());
continue;
}