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 * XENCEncryptionMethod := Interface definition for EncryptionMethod element 00021 * 00022 * $Id: XENCEncryptionMethod.hpp,v 1.8 2004/02/08 10:26:00 blautenb Exp $ 00023 * 00024 */ 00025 00026 #ifndef XENCENCRYPTIONMETHOD_INCLUDE 00027 #define XENCENCRYPTIONMETHOD_INCLUDE 00028 00029 // XSEC Includes 00030 00031 #include <xsec/framework/XSECDefs.hpp> 00032 00063 class XENCEncryptionMethod { 00064 00065 public: 00066 00067 XENCEncryptionMethod() {}; 00068 00069 virtual ~XENCEncryptionMethod() {}; 00070 00073 00083 virtual const XMLCh * getAlgorithm(void) const = 0; 00084 00094 virtual const XMLCh * getDigestMethod(void) const = 0; 00095 00105 virtual const XMLCh * getOAEPparams(void) const = 0; 00106 00115 virtual int getKeySize(void) const = 0; 00116 00123 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) const = 0; 00124 00125 00127 00130 00141 virtual void setDigestMethod(const XMLCh * method) = 0; 00142 00153 virtual void setOAEPparams(const XMLCh * params) = 0; 00154 00163 virtual void setKeySize(int size) = 0; 00164 00166 00167 private: 00168 00169 // Unimplemented 00170 XENCEncryptionMethod(const XENCEncryptionMethod &); 00171 XENCEncryptionMethod & operator = (const XENCEncryptionMethod &); 00172 00173 }; 00174 00175 #endif /* XENCENCRYPTIONMETHOD_INCLUDE */