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

XSECAlgorithmHandler.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  * XSECAlgorithmHandler := Interface class to define handling of
00021  *                         encryption and signature algorithms
00022  *
00023  * $Id: XSECAlgorithmHandler.hpp,v 1.4 2004/02/08 10:24:23 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 
00110     virtual bool encryptToSafeBuffer(
00111         TXFMChain * plainText,
00112         XENCEncryptionMethod * encryptionMethod,
00113         XSECCryptoKey * key,
00114         XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
00115         safeBuffer & result
00116     ) = 0;
00117 
00119 
00122 
00143     virtual unsigned int decryptToSafeBuffer(
00144         TXFMChain * cipherText,
00145         XENCEncryptionMethod * encryptionMethod,
00146         XSECCryptoKey * key,
00147         XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
00148         safeBuffer & result
00149     ) = 0;
00150 
00172     virtual bool appendDecryptCipherTXFM(
00173         TXFMChain * cipherText,
00174         XENCEncryptionMethod * encryptionMethod,
00175         XSECCryptoKey * key,
00176         XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc
00177     ) = 0;
00178 
00179 
00181 
00184 
00195     virtual XSECCryptoKey * createKeyForURI(
00196         const XMLCh * uri,
00197         unsigned char * keyBuffer,
00198         unsigned int keyLen
00199     ) = 0;
00200 
00202 
00205 
00213     virtual XSECAlgorithmHandler * clone(void) const = 0;
00214 
00216 
00217 };
00218 
00219 /*\@}*/
00220 
00221 #endif /* XSECALGHANDLER_INCLUDE*/
00222 

Generated on Sun Mar 14 20:20:37 2004 for XML-Security-C by doxygen 1.3.2