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 * XKMSAuthentication := Interface for ValidityInterval elements 00021 * 00022 * $Id: XKMSAuthentication.hpp,v 1.4 2005/06/04 11:30:26 blautenb Exp $ 00023 * 00024 */ 00025 00026 #ifndef XKMSAUTHENTICATION_INCLUDE 00027 #define XKMSAUTHENTICATION_INCLUDE 00028 00029 // XSEC Includes 00030 00031 #include <xsec/framework/XSECDefs.hpp> 00032 #include <xsec/dsig/DSIGConstants.hpp> 00033 00034 class DSIGSignature; 00035 class XKMSNotBoundAuthentication; 00036 00066 class XKMSAuthentication { 00067 00070 00071 protected: 00072 00073 XKMSAuthentication() {}; 00074 00075 public: 00076 00077 virtual ~XKMSAuthentication() {}; 00078 00080 00083 00095 virtual DSIGSignature * getKeyBindingAuthenticationSignature(void) const = 0; 00096 00110 virtual XKMSNotBoundAuthentication * getNotBoundAuthentication(void) const = 0; 00111 00113 00116 00126 virtual DSIGSignature * addKeyBindingAuthenticationSignature( 00127 canonicalizationMethod cm = CANON_C14NE_NOC, 00128 signatureMethod sm = SIGNATURE_HMAC, 00129 hashMethod hm = HASH_SHA1) = 0; 00130 00140 virtual void setNotBoundAuthentication(const XMLCh * uri, const XMLCh * value) = 0; 00141 00143 00144 private: 00145 00146 // Unimplemented 00147 XKMSAuthentication(const XKMSAuthentication &); 00148 XKMSAuthentication & operator = (const XKMSAuthentication &); 00149 00150 }; 00151 00152 #endif /* XKMSAUTHENTICATION_INCLUDE */