00001 /* 00002 * Copyright 2004-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 * XKMSLocateResult := Interface for LocateResult Messages 00021 * 00022 * $Id: XKMSLocateResult.hpp,v 1.4 2005/06/04 11:30:26 blautenb Exp $ 00023 * 00024 */ 00025 00026 #ifndef XKMSLOCATERESULT_INCLUDE 00027 #define XKMSLOCATERESULT_INCLUDE 00028 00029 // XSEC Includes 00030 00031 #include <xsec/framework/XSECDefs.hpp> 00032 #include <xsec/xkms/XKMSResultType.hpp> 00033 00034 class XKMSQueryKeyBinding; 00035 class XKMSUnverifiedKeyBinding; 00036 00067 class XKMSLocateResult : public XKMSResultType { 00068 00071 00072 protected: 00073 00074 XKMSLocateResult() {}; 00075 00076 public: 00077 00078 virtual ~XKMSLocateResult() {}; 00079 00082 00087 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) const = 0; 00088 00090 00093 00100 virtual int getUnverifiedKeyBindingSize(void) const = 0; 00101 00102 /* 00103 * \brief Obtain an UnverifiedKeyBinding item 00104 * 00105 * @param item Index of the item to return (0 = first element) 00106 * @returns the UnverifiedKeyBinding referenced by "item" 00107 */ 00108 00109 virtual XKMSUnverifiedKeyBinding * getUnverifiedKeyBindingItem(int item) const = 0; 00110 00111 /* 00112 * \brief Append a new UnverifiedKeyBinding element 00113 * 00114 * Allows callers to append a new UnverifiedKeyBinding item. 00115 * The item is initially empty of KeyInfo elements - these must be added 00116 * by the caller. 00117 * 00118 * @returns the newly created UnverifiedKeyBinding object (already inserted 00119 * in the LocateResult 00120 */ 00121 00122 virtual XKMSUnverifiedKeyBinding * appendUnverifiedKeyBindingItem(void ) = 0; 00123 00125 00126 private: 00127 00128 // Unimplemented 00129 XKMSLocateResult(const XKMSLocateResult &); 00130 XKMSLocateResult & operator = (const XKMSLocateResult &); 00131 00132 }; 00133 00134 #endif /* XKMSLOCATERESULT_INCLUDE */