Revised decryption APIs to clarify CredentialResolver/KeyResolver difference.
[shibboleth/cpp-opensaml.git] / saml / encryption / EncryptedKeyResolver.h
index 67a59b5..51f74ba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2006 Internet2
+ *  Copyright 2001-2007 Internet2
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -46,11 +46,7 @@ namespace opensaml {
             XMLString::release(&m_recipient);
         }
 
-        xmlencryption::EncryptedKey* resolveKey(xmlencryption::EncryptedData* encryptedData);
-        
-        EncryptedKeyResolver* clone() const {
-            return new EncryptedKeyResolver(m_ref, m_recipient);
-        }
+        xmlencryption::EncryptedKey* resolveKey(xmlencryption::EncryptedData& encryptedData) const;
      
     protected:
         const saml2::EncryptedElementType& m_ref;