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

XENCEncryptedKey.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2003-2004 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  * imitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  *
00020  * XENCEncryptedKey := Definition for holder object for EncryptedKey 
00021  *
00022  * $Id: XENCEncryptedKey.hpp,v 1.4 2004/02/08 10:26:00 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 
00071 class XENCEncryptedKey : public XENCEncryptedType, public DSIGKeyInfo {
00072 
00075 
00076 protected:
00077 
00078     // Because we inherit from KeyInfo, we need to implement a slightly different 
00079     // constructor.
00080 
00081     XENCEncryptedKey(const XSECEnv * env) : DSIGKeyInfo(env) {};
00082 
00083 public:
00084 
00085     virtual ~XENCEncryptedKey() {};
00086 
00089 
00104     virtual const XMLCh * getCarriedKeyName(void) const = 0;
00105 
00119     virtual const XMLCh * getRecipient(void) const = 0;
00120 
00122 
00125 
00139     virtual void setCarriedKeyName(const XMLCh * name) = 0;
00140 
00153     virtual void setRecipient(const XMLCh * recipient) = 0;
00154 
00156 
00157 private:
00158 
00159     // Unimplemented
00160     XENCEncryptedKey(const XENCEncryptedKey &);
00161     XENCEncryptedKey & operator = (const XENCEncryptedKey &);
00162 
00163 
00164 };
00165 
00166 #endif /* XENCENCRYPTEDKEY_INCLUDE */

Generated on Sun Mar 14 21:35:31 2004 for XML-Security-C by doxygen 1.3.2