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 * XENCCipherData := Interface for CipherData elements 00021 * 00022 * $Id: XENCCipherData.hpp,v 1.8 2005/06/04 11:30:26 blautenb Exp $ 00023 * 00024 */ 00025 00026 #ifndef XSECCIPHERDATA_INCLUDE 00027 #define XSECCIPHERDATA_INCLUDE 00028 00029 // XSEC Includes 00030 00031 #include <xsec/framework/XSECDefs.hpp> 00032 00033 #include <xsec/xenc/XENCCipherValue.hpp> 00034 #include <xsec/xenc/XENCCipherReference.hpp> 00035 00065 class XENCCipherData { 00066 00067 public: 00068 00073 enum XENCCipherDataType { 00074 00075 NO_TYPE = 0, 00076 VALUE_TYPE = 1, 00077 REFERENCE_TYPE = 2, 00078 00079 }; 00080 00083 00084 protected: 00085 00086 XENCCipherData() {}; 00087 00088 public: 00089 00090 virtual ~XENCCipherData() {}; 00091 00094 00106 virtual XENCCipherDataType getCipherDataType(void) = 0; 00107 00114 virtual XENCCipherValue * getCipherValue(void) = 0; 00115 00122 virtual XENCCipherReference * getCipherReference(void) = 0; 00123 00130 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) = 0; 00131 00133 00134 private: 00135 00136 // Unimplemented 00137 XENCCipherData(const XENCCipherData &); 00138 XENCCipherData & operator = (const XENCCipherData &); 00139 00140 }; 00141 00142 #endif /* XENCCIPHERDATA_INCLUDE */ 00143