00001 /* 00002 * Copyright 2006 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 * XKMSRevokeResult := Interface for RegisterResult Messages 00021 * 00022 * $Id:$ 00023 * 00024 */ 00025 00026 #ifndef XKMSREVOKERESULT_INCLUDE 00027 #define XKMSREVOKERESULT_INCLUDE 00028 00029 // XSEC Includes 00030 00031 #include <xsec/framework/XSECDefs.hpp> 00032 #include <xsec/xkms/XKMSResultType.hpp> 00033 #include <xsec/xkms/XKMSStatus.hpp> 00034 00035 class XKMSKeyBinding; 00036 00066 class XKMSRevokeResult : public XKMSResultType { 00067 00070 00071 protected: 00072 00073 XKMSRevokeResult() {}; 00074 00075 public: 00076 00077 virtual ~XKMSRevokeResult() {}; 00078 00081 00086 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) const = 0; 00087 00089 00092 00099 virtual int getKeyBindingSize(void) const = 0; 00100 00101 /* 00102 * \brief Obtain an KeyBinding item 00103 * 00104 * @param item Index of the item to return (0 = first element) 00105 * @returns the KeyBinding referenced by "item" 00106 */ 00107 00108 virtual XKMSKeyBinding * getKeyBindingItem(int item) const = 0; 00109 00110 /* 00111 * \brief Append a new KeyBinding element 00112 * 00113 * Allows callers to append a new KeyBinding item. 00114 * The item is initially empty of KeyInfo elements - these must be added 00115 * by the caller. 00116 * 00117 * @param status The status (Valid, Invalid or Indeterminate) of this 00118 * key 00119 * @returns the newly created KeyBinding object (already inserted 00120 * in the RegisterResult 00121 */ 00122 00123 virtual XKMSKeyBinding * appendKeyBindingItem(XKMSStatus::StatusValue status) = 0; 00124 00126 00127 private: 00128 00129 // Unimplemented 00130 XKMSRevokeResult(const XKMSRevokeResult &); 00131 XKMSRevokeResult & operator = (const XKMSRevokeResult &); 00132 00133 }; 00134 00135 #endif /* XKMSREVOKERESULT_INCLUDE */