X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fencryption%2FEncryptedKeyResolver.cpp;h=c25e5285b59b6a2611f4e69edb979620db8f9a45;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hp=449a7539ccc2e8fdfa687577e377d7f4635063b0;hpb=19a320b1a8d5c733503a4b1aa842865d59b25d24;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/encryption/EncryptedKeyResolver.cpp b/saml/encryption/EncryptedKeyResolver.cpp index 449a753..c25e528 100644 --- a/saml/encryption/EncryptedKeyResolver.cpp +++ b/saml/encryption/EncryptedKeyResolver.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007 Internet2 + * Copyright 2001-2010 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ /** * EncryptedKeyResolver.cpp * - * SAML-specific encrypted key resolver + * SAML-specific encrypted key resolver. */ #include "internal.h" @@ -25,8 +25,17 @@ #include "saml2/core/Assertions.h" using namespace xmlencryption; +using opensaml::saml2::EncryptedElementType; using namespace std; +opensaml::EncryptedKeyResolver::EncryptedKeyResolver(const EncryptedElementType& ref) : m_ref(ref) +{ +} + +opensaml::EncryptedKeyResolver::~EncryptedKeyResolver() +{ +} + const EncryptedKey* opensaml::EncryptedKeyResolver::resolveKey(const EncryptedData& encryptedData, const XMLCh* recipient) const { const EncryptedKey* base = xmlencryption::EncryptedKeyResolver::resolveKey(encryptedData, recipient); @@ -38,5 +47,5 @@ const EncryptedKey* opensaml::EncryptedKeyResolver::resolveKey(const EncryptedDa if (XMLString::equals(recipient,(*i)->getRecipient())) return (*i); } - return NULL; + return nullptr; }