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 * XKMSRegisterRequest := Interface for RegisterRequest Messages 00021 * 00022 * $Id: XKMSRegisterRequest.hpp,v 1.4 2005/06/04 11:30:26 blautenb Exp $ 00023 * 00024 */ 00025 00026 #ifndef XKMSREGISTERREQUEST_INCLUDE 00027 #define XKMSREGISTERREQUEST_INCLUDE 00028 00029 // XSEC Includes 00030 00031 #include <xsec/framework/XSECDefs.hpp> 00032 #include <xsec/xkms/XKMSRequestAbstractType.hpp> 00033 00034 class DSIGSignature; 00035 class XKMSAuthentication; 00036 class XKMSPrototypeKeyBinding; 00037 00069 class XKMSRegisterRequest : public XKMSRequestAbstractType { 00070 00073 00074 protected: 00075 00076 XKMSRegisterRequest() {}; 00077 00078 public: 00079 00080 virtual ~XKMSRegisterRequest() {}; 00081 00084 00089 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) const = 0; 00090 00100 virtual XKMSPrototypeKeyBinding * getPrototypeKeyBinding(void) const = 0; 00101 00111 virtual XKMSAuthentication * getAuthentication (void) const = 0; 00112 00124 virtual DSIGSignature * getProofOfPossessionSignature(void) const = 0; 00125 00127 00130 00140 virtual XKMSPrototypeKeyBinding * addPrototypeKeyBinding(void) = 0; 00141 00151 virtual XKMSAuthentication * addAuthentication(void) = 0; 00152 00167 virtual DSIGSignature * addProofOfPossessionSignature( 00168 canonicalizationMethod cm = CANON_C14N_NOC, 00169 signatureMethod sm = SIGNATURE_DSA, 00170 hashMethod hm = HASH_SHA1) = 0; 00171 00173 00174 private: 00175 00176 // Unimplemented 00177 XKMSRegisterRequest(const XKMSRegisterRequest &); 00178 XKMSRegisterRequest & operator = (const XKMSRegisterRequest &); 00179 00180 }; 00181 00182 #endif /* XKMSREGISTERREQUEST_INCLUDE */