Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

XENCEncryptedKey.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2003-2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  *
00020  * XENCEncryptedKey := Definition for holder object for EncryptedKey 
00021  *
00022  * $Id: XENCEncryptedKey.hpp,v 1.6 2005/06/04 11:30:26 blautenb Exp $
00023  *
00024  */
00025 
00026 #ifndef XENCENCRYPTEDKEY_INCLUDE
00027 #define XENCENCRYPTEDKEY_INCLUDE
00028 
00029 // XSEC Includes
00030 
00031 #include <xsec/framework/XSECDefs.hpp>
00032 #include <xsec/dsig/DSIGKeyInfo.hpp>
00033 #include <xsec/xenc/XENCEncryptedType.hpp>
00034 #include <xsec/xenc/XENCCipherData.hpp>
00035 
00070 class XENCEncryptedKey : public XENCEncryptedType, public DSIGKeyInfo {
00071 
00074 
00075 protected:
00076 
00077     // Because we inherit from KeyInfo, we need to implement a slightly different 
00078     // constructor.
00079 
00080     XENCEncryptedKey(const XSECEnv * env) : DSIGKeyInfo(env) {};
00081 
00082 public:
00083 
00084     virtual ~XENCEncryptedKey() {};
00085 
00088 
00103     virtual const XMLCh * getCarriedKeyName(void) const = 0;
00104 
00118     virtual const XMLCh * getRecipient(void) const = 0;
00119 
00121 
00124 
00138     virtual void setCarriedKeyName(const XMLCh * name) = 0;
00139 
00152     virtual void setRecipient(const XMLCh * recipient) = 0;
00153 
00155 
00156 private:
00157 
00158     // Unimplemented
00159     XENCEncryptedKey(const XENCEncryptedKey &);
00160     XENCEncryptedKey & operator = (const XENCEncryptedKey &);
00161 
00162 
00163 };
00164 
00165 #endif /* XENCENCRYPTEDKEY_INCLUDE */

Generated on Sun Jul 3 17:37:27 2005 for XML-Security-C by  doxygen 1.4.2