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 * XKMSCompoundRequest := Interface for CompoundRequest Messages 00021 * 00022 * $Id: XKMSCompoundRequest.hpp 385418 2006-03-13 03:16:22Z blautenb $ 00023 * 00024 */ 00025 00026 #ifndef XKMSCOMPOUNDREQUEST_INCLUDE 00027 #define XKMSCOMPOUNDREQUEST_INCLUDE 00028 00029 // XSEC Includes 00030 00031 #include <xsec/framework/XSECDefs.hpp> 00032 #include <xsec/xkms/XKMSRequestAbstractType.hpp> 00033 00034 class XKMSLocateRequest; 00035 class XKMSValidateRequest; 00036 class XKMSRegisterRequest; 00037 class XKMSRevokeRequest; 00038 class XKMSReissueRequest; 00039 class XKMSRecoverRequest; 00040 00075 class XKMSCompoundRequest : public XKMSRequestAbstractType { 00076 00079 00080 protected: 00081 00082 XKMSCompoundRequest() {}; 00083 00084 public: 00085 00086 virtual ~XKMSCompoundRequest() {}; 00087 00090 00095 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) const = 0; 00096 00107 virtual int getRequestListSize(void) = 0; 00108 00118 virtual XKMSRequestAbstractType * getRequestListItem(int item) = 0; 00119 00121 00124 00136 virtual XKMSLocateRequest * createLocateRequest( 00137 const XMLCh * service, 00138 const XMLCh * id = NULL) = 0; 00139 00151 virtual XKMSValidateRequest * createValidateRequest( 00152 const XMLCh * service, 00153 const XMLCh * id = NULL) = 0; 00154 00166 virtual XKMSRegisterRequest * createRegisterRequest( 00167 const XMLCh * service, 00168 const XMLCh * id = NULL) = 0; 00169 00181 virtual XKMSRevokeRequest * createRevokeRequest( 00182 const XMLCh * service, 00183 const XMLCh * id = NULL) = 0; 00184 00196 virtual XKMSRecoverRequest * createRecoverRequest( 00197 const XMLCh * service, 00198 const XMLCh * id = NULL) = 0; 00199 00211 virtual XKMSReissueRequest * createReissueRequest( 00212 const XMLCh * service, 00213 const XMLCh * id = NULL) = 0; 00214 00216 00217 private: 00218 00219 // Unimplemented 00220 XKMSCompoundRequest(const XKMSCompoundRequest &); 00221 XKMSCompoundRequest & operator = (const XKMSCompoundRequest &); 00222 00223 }; 00224 00225 #endif /* XKMSCOMPOUNDREQUEST_INCLUDE */