1 /** 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 */ 19 20 /* 21 * XSEC 22 * 23 * XKMSUnverifiedKeyBindingImpl := Implementation for UnverifiedKeyBinding 24 * 25 * $Id: XKMSUnverifiedKeyBindingImpl.cpp 1833340 2018-06-11 15:40:13Z scantor $ 26 * 27 */ 28 29 // XSEC Includes 30 31 #include <xsec/framework/XSECDefs.hpp> 32 #include <xsec/framework/XSECError.hpp> 33 34 35 #ifdef XSEC_XKMS_ENABLED 36 37 #include "XKMSUnverifiedKeyBindingImpl.hpp" 38 39 #include <xercesc/dom/DOM.hpp> 40 41 #include <xsec/xkms/XKMSConstants.hpp> 42 43 XERCES_CPP_NAMESPACE_USE 44 45 // -------------------------------------------------------------------------------- 46 // Construct/Destruct 47 // -------------------------------------------------------------------------------- 48 XKMSUnverifiedKeyBindingImpl(const XSECEnv * env)49XKMSUnverifiedKeyBindingImpl::XKMSUnverifiedKeyBindingImpl( 50 const XSECEnv * env 51 ) : 52 XKMSKeyBindingAbstractTypeImpl(env) { 53 54 } 55 XKMSUnverifiedKeyBindingImpl(const XSECEnv * env,XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * node)56XKMSUnverifiedKeyBindingImpl::XKMSUnverifiedKeyBindingImpl( 57 const XSECEnv * env, 58 XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * node 59 ) : 60 XKMSKeyBindingAbstractTypeImpl(env, node) { 61 62 } 63 ~XKMSUnverifiedKeyBindingImpl()64XKMSUnverifiedKeyBindingImpl::~XKMSUnverifiedKeyBindingImpl() {} 65 66 // -------------------------------------------------------------------------------- 67 // Load from DOM 68 // -------------------------------------------------------------------------------- 69 load(void)70void XKMSUnverifiedKeyBindingImpl::load(void) { 71 72 if (mp_keyBindingAbstractTypeElement == NULL) { 73 throw XSECException(XSECException::ExpectedXKMSChildNotFound, 74 "XKMSUnverifiedKeyBindingImpl::load - called on empty DOM"); 75 } 76 77 XKMSKeyBindingAbstractTypeImpl::load(); 78 79 } 80 81 // -------------------------------------------------------------------------------- 82 // Create 83 // -------------------------------------------------------------------------------- 84 createBlankUnverifiedKeyBinding(void)85DOMElement * XKMSUnverifiedKeyBindingImpl::createBlankUnverifiedKeyBinding(void) { 86 87 return XKMSKeyBindingAbstractTypeImpl:: 88 createBlankKeyBindingAbstractType(XKMSConstants::s_tagUnverifiedKeyBinding); 89 90 } 91 92 #endif /* XSEC_XKMS_ENABLED */ 93