-<?xml version="1.0" encoding="UTF-8"?>\r
-<?fileVersion 4.0.0?>\r
-\r
-<cproject>\r
+<?xml version="1.0" encoding="UTF-8"?><?fileVersion 4.0.0?><cproject>\r
<storageModule moduleId="org.eclipse.cdt.core.settings">\r
<cconfiguration id="converted.config.943130369">\r
<storageModule moduleId="scannerConfiguration">\r
--- /dev/null
+/*
+ * Copyright 2001-2007 Internet2
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @file xmltooling/ConcreteXMLObjectBuilder.h
+ *
+ * Factory interface for concrete XMLObjects, supporting default construction.
+ */
+
+#ifndef __xmltooling_concxmlobjbuilder_h__
+#define __xmltooling_concxmlobjbuilder_h__
+
+#include <xmltooling/XMLObjectBuilder.h>
+
+namespace xmltooling {
+
+ /**
+ * A factory interface for obtaining XMLObjects.
+ * Subclasses MAY supply additional factory methods.
+ */
+ class XMLTOOL_API ConcreteXMLObjectBuilder : public XMLObjectBuilder
+ {
+ public:
+ virtual ~ConcreteXMLObjectBuilder() {}
+
+ /**
+ * Creates an empty XMLObject with a defaulted element name and/or type.
+ *
+ * @return the empty XMLObject
+ */
+ virtual XMLObject* buildObject() const=0;
+
+ protected:
+ ConcreteXMLObjectBuilder() {}
+ };
+
+};
+
+#endif /* __xmltooling_concxmlobjbuilder_h__ */
AbstractXMLObject.h \
AttributeExtensibleXMLObject.h \
base.h \
+ ConcreteXMLObjectBuilder.h \
config_pub.h \
ElementExtensibleXMLObject.h \
ElementProxy.h \
encryption/impl/Decrypter.cpp \
encryption/impl/EncryptedKeyResolver.cpp \
encryption/impl/Encrypter.cpp \
+ encryption/impl/EncryptionImpl.cpp \
+ encryption/impl/EncryptionSchemaValidators.cpp \
impl/MemoryStorageService.cpp \
security/impl/AbstractPKIXTrustEngine.cpp \
security/impl/BasicX509Credential.cpp \
security/impl/StaticPKIXTrustEngine.cpp \
security/impl/TrustEngine.cpp \
security/impl/XSECCryptoX509CRL.cpp \
+ signature/impl/KeyInfoImpl.cpp \
+ signature/impl/KeyInfoSchemaValidators.cpp \
signature/impl/SignatureValidator.cpp \
signature/impl/XMLSecSignatureImpl.cpp \
soap/impl/CURLSOAPTransport.cpp \
unicode.cpp \
XMLObjectBuilder.cpp \
XMLToolingConfig.cpp \
- encryption/impl/EncryptionImpl.cpp \
- encryption/impl/EncryptionSchemaValidators.cpp \
impl/AnyElement.cpp \
impl/UnknownElement.cpp \
io/AbstractXMLObjectMarshaller.cpp \
io/AbstractXMLObjectUnmarshaller.cpp \
io/HTTPRequest.cpp \
- signature/impl/KeyInfoImpl.cpp \
- signature/impl/KeyInfoSchemaValidators.cpp \
soap/impl/SOAPClient.cpp \
soap/impl/SOAPImpl.cpp \
soap/impl/SOAPSchemaValidators.cpp \
/**
* @file xmltooling/XMLObjectBuilder.h
*
- * Factory interface for XMLObjects
+ * Factory interface for XMLObjects.
*/
#ifndef __xmltooling_xmlobjbuilder_h__
/**
* Creates an empty XMLObject with a particular element name.
- * The results are undefined if localName is NULL or empty.
+ * <p>The results are undefined if localName is NULL or empty.
*
* @param nsURI namespace URI for element
* @param localName local name of element
#endif
using namespace soap11;
-using namespace xmlencryption;
-using namespace xmlsignature;
using namespace xmltooling::logging;
using namespace xmltooling;
using namespace std;
DECL_XMLTOOLING_EXCEPTION_FACTORY(IOException,xmltooling);
#ifndef XMLTOOLING_NO_XMLSEC
+using namespace xmlencryption;
+using namespace xmlsignature;
DECL_XMLTOOLING_EXCEPTION_FACTORY(XMLSecurityException,xmltooling);
DECL_XMLTOOLING_EXCEPTION_FACTORY(SignatureException,xmlsignature);
DECL_XMLTOOLING_EXCEPTION_FACTORY(EncryptionException,xmlencryption);
// default registrations
XMLObjectBuilder::registerDefaultBuilder(new UnknownElementBuilder());
- registerKeyInfoClasses();
- registerEncryptionClasses();
registerSOAPClasses();
REGISTER_XMLTOOLING_EXCEPTION_FACTORY(XMLParserException,xmltooling);
REGISTER_XMLTOOLING_EXCEPTION_FACTORY(XMLSecurityException,xmltooling);
REGISTER_XMLTOOLING_EXCEPTION_FACTORY(SignatureException,xmlsignature);
REGISTER_XMLTOOLING_EXCEPTION_FACTORY(EncryptionException,xmlencryption);
+ registerKeyInfoClasses();
+ registerEncryptionClasses();
registerKeyInfoResolvers();
registerCredentialResolvers();
registerTrustEngines();
*/
#define BEGIN_XMLOBJECTBUILDER(linkage,cname,namespaceURI,namespacePrefix) \
XMLTOOLING_DOXYGEN(Builder for cname objects.) \
- class linkage cname##Builder : public xmltooling::XMLObjectBuilder { \
+ class linkage cname##Builder : public xmltooling::ConcreteXMLObjectBuilder { \
public: \
virtual ~cname##Builder() {} \
XMLTOOLING_DOXYGEN(Default builder.) \
*/
#define BEGIN_XMLOBJECTBUILDER(linkage,cname,namespaceURI,namespacePrefix) \
XMLTOOLING_DOXYGEN(Builder for cname objects.) \
- class linkage cname##Builder : public xmltooling::XMLObjectBuilder { \
+ class linkage cname##Builder : public xmltooling::ConcreteXMLObjectBuilder { \
public: \
virtual ~cname##Builder() {} \
XMLTOOLING_DOXYGEN(Default builder.) \
* XMLObjects representing XML Encryption content
*/
-#ifndef __xmltooling_encryption_h__
+#if !defined(__xmltooling_encryption_h__) && !defined(XMLTOOLING_NO_XMLSEC)
#define __xmltooling_encryption_h__
#include <xmltooling/signature/KeyInfo.h>
/**
* @file xmltooling/security/CredentialContext.h
*
- * Marker interface for implementations which hold information specific to a\r
+ * Marker interface for implementations which hold information specific to a
* particular context within which a CredentialResolver resolves a Credential.
*/
namespace xmltooling {
- /**\r
- * Marker interface for implementations which hold information specific to a\r
- * particular context within which a CredentialResolver resolves a Credential.\r
- */\r
+ /**
+ * Marker interface for implementations which hold information specific to a
+ * particular context within which a CredentialResolver resolves a Credential.
+ */
class XMLTOOL_API CredentialContext
{
MAKE_NONCOPYABLE(CredentialContext);
* and related content.
*/
-#ifndef __xmltooling_keyinfo_h__
+#if !defined(__xmltooling_keyinfo_h__) && !defined(XMLTOOLING_NO_XMLSEC)
#define __xmltooling_keyinfo_h__
+#include <xmltooling/ConcreteXMLObjectBuilder.h>
#include <xmltooling/ElementProxy.h>
-#include <xmltooling/XMLObjectBuilder.h>
#include <xmltooling/util/XMLConstants.h>
/**
#if !defined(__xmltooling_sig_h__) && !defined(XMLTOOLING_NO_XMLSEC)
#define __xmltooling_sig_h__
+#include <xmltooling/ConcreteXMLObjectBuilder.h>
#include <xmltooling/exceptions.h>
-#include <xmltooling/XMLObjectBuilder.h>
#include <xmltooling/signature/ContentReference.h>
#include <xmltooling/util/XMLConstants.h>
#ifndef __xmltooling_soap_h__
#define __xmltooling_soap_h__
+#include <xmltooling/ConcreteXMLObjectBuilder.h>
#include <xmltooling/ElementProxy.h>
-#include <xmltooling/XMLObjectBuilder.h>
#include <xmltooling/util/XMLConstants.h>
#include <xercesc/util/XMLUniDefs.hpp>
/** Sets the QName content of the element. */
virtual void setCode(const xmltooling::QName* qname)=0;
/** Client Fault code. **/
- static xmltooling::QName CLIENT;\r
- /** Server Fault code. **/\r
- static xmltooling::QName SERVER;\r
- /** MustUnderstand Fault code. **/\r
- static xmltooling::QName MUSTUNDERSTAND;\r
- /** Version Mismatch Fault code. **/\r
- static xmltooling::QName VERSIONMISMATCH;\r
+ static xmltooling::QName CLIENT;
+ /** Server Fault code. **/
+ static xmltooling::QName SERVER;
+ /** MustUnderstand Fault code. **/
+ static xmltooling::QName MUSTUNDERSTAND;
+ /** Version Mismatch Fault code. **/
+ static xmltooling::QName VERSIONMISMATCH;
END_XMLOBJECT;
BEGIN_XMLOBJECT(XMLTOOL_API,Detail,xmltooling::ElementProxy,SOAP 1.1 detail element);
</File>\r
</Filter>\r
<Filter\r
- Name="signature"\r
- >\r
- <Filter\r
- Name="impl"\r
- >\r
- <File\r
- RelativePath=".\signature\impl\KeyInfoImpl.cpp"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\signature\impl\KeyInfoSchemaValidators.cpp"\r
- >\r
- </File>\r
- </Filter>\r
- </Filter>\r
- <Filter\r
- Name="encryption"\r
- >\r
- <Filter\r
- Name="impl"\r
- >\r
- <File\r
- RelativePath=".\encryption\impl\EncryptionImpl.cpp"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\encryption\impl\EncryptionSchemaValidators.cpp"\r
- >\r
- </File>\r
- </Filter>\r
- </Filter>\r
- <Filter\r
Name="soap"\r
>\r
<Filter\r
>\r
</File>\r
<File\r
+ RelativePath=".\ConcreteXMLObjectBuilder.h"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\config_pub_win32.h"\r
>\r
</File>\r
</File>\r
</Filter>\r
<Filter\r
- Name="signature"\r
- >\r
- <File\r
- RelativePath=".\signature\KeyInfo.h"\r
- >\r
- </File>\r
- </Filter>\r
- <Filter\r
- Name="encryption"\r
- >\r
- <File\r
- RelativePath=".\encryption\Encryption.h"\r
- >\r
- </File>\r
- </Filter>\r
- <Filter\r
Name="soap"\r
>\r
<File\r
>\r
</File>\r
<File\r
+ RelativePath=".\ConcreteXMLObjectBuilder.h"\r
+ >\r
+ </File>\r
+ <File\r
RelativePath=".\config_pub_win32.h"\r
>\r
</File>\r