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

XSECAlgorithmHandler.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  * XSECAlgorithmHandler := Interface class to define handling of
00021  *                         encryption and signature algorithms
00022  *
00023  * $Id: XSECAlgorithmHandler.hpp,v 1.6 2005/06/04 11:30:26 blautenb Exp $
00024  *
00025  */
00026 
00027 #ifndef XSECALGHANDLER_INCLUDE
00028 #define XSECALGHANDLER_INCLUDE
00029 
00030 // XSEC Includes
00031 
00032 #include <xsec/framework/XSECDefs.hpp>
00033 
00034 class TXFMChain;
00035 class XENCEncryptionMethod;
00036 class XSECCryptoKey;
00037 class safeBuffer;
00038 class XSECBinTXFMInputStream;
00039 
00040 XSEC_DECLARE_XERCES_CLASS(DOMDocument);
00041 
00042 // Xerces
00043 
00070 class XSECAlgorithmHandler {
00071 
00072 public:
00073     
00076     
00077     virtual ~XSECAlgorithmHandler() {};
00078 
00080 
00083 
00112     virtual bool encryptToSafeBuffer(
00113         TXFMChain * plainText,
00114         XENCEncryptionMethod * encryptionMethod,
00115         XSECCryptoKey * key,
00116         XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
00117         safeBuffer & result
00118     ) = 0;
00119 
00121 
00124 
00147     virtual unsigned int decryptToSafeBuffer(
00148         TXFMChain * cipherText,
00149         XENCEncryptionMethod * encryptionMethod,
00150         XSECCryptoKey * key,
00151         XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
00152         safeBuffer & result
00153     ) = 0;
00154 
00177     virtual bool appendDecryptCipherTXFM(
00178         TXFMChain * cipherText,
00179         XENCEncryptionMethod * encryptionMethod,
00180         XSECCryptoKey * key,
00181         XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc
00182     ) = 0;
00183 
00184 
00186 
00189 
00200     virtual XSECCryptoKey * createKeyForURI(
00201         const XMLCh * uri,
00202         unsigned char * keyBuffer,
00203         unsigned int keyLen
00204     ) = 0;
00205 
00207 
00210 
00218     virtual XSECAlgorithmHandler * clone(void) const = 0;
00219 
00221 
00222 };
00223 
00224 /*\@}*/
00225 
00226 #endif /* XSECALGHANDLER_INCLUDE*/
00227 

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