X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fbinding%2FMessageEncoder.h;h=5601568c77fd85c83f7e6b0dff1222d0cf34cf04;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hp=fa8218db4abe231d66ceafde85b8f5c6b2f5d9f3;hpb=e9ac4f386759a8fa26623f2c1bac23880723cd46;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/binding/MessageEncoder.h b/saml/binding/MessageEncoder.h index fa8218d..5601568 100644 --- a/saml/binding/MessageEncoder.h +++ b/saml/binding/MessageEncoder.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007 Internet2 + * Copyright 2001-2010 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,10 +25,11 @@ #include -#include -#include -#include -#include +namespace xmltooling { + class XMLTOOL_API Credential; + class XMLTOOL_API GenericResponse; + class XMLTOOL_API XMLObject; +}; namespace opensaml { @@ -47,16 +48,21 @@ namespace opensaml { { MAKE_NONCOPYABLE(MessageEncoder); public: - virtual ~MessageEncoder() {} + virtual ~MessageEncoder(); /** * Indicates whether the encoding format requires that messages be as compact as possible. * * @return true iff the encoding has size constraints */ - virtual bool isCompact() const { - return false; - } + virtual bool isCompact() const; + + /** + * Indicates whether a web browser or similar user agent will receive the message. + * + * @return true iff the message will be handled by a user agent + */ + virtual bool isUserAgentPresent() const; /** * Interface to caller-supplied artifact generation mechanism. @@ -71,9 +77,9 @@ namespace opensaml { class SAML_API ArtifactGenerator { MAKE_NONCOPYABLE(ArtifactGenerator); protected: - ArtifactGenerator() {} + ArtifactGenerator(); public: - virtual ~ArtifactGenerator() {} + virtual ~ArtifactGenerator(); /** * Generate a SAML 1.x artifact suitable for consumption by the relying party. @@ -118,16 +124,16 @@ namespace opensaml { xmltooling::GenericResponse& genericResponse, xmltooling::XMLObject* xmlObject, const char* destination, - const saml2md::EntityDescriptor* recipient=NULL, - const char* relayState=NULL, - const ArtifactGenerator* artifactGenerator=NULL, - const xmltooling::Credential* credential=NULL, - const XMLCh* signatureAlg=NULL, - const XMLCh* digestAlg=NULL + const saml2md::EntityDescriptor* recipient=nullptr, + const char* relayState=nullptr, + const ArtifactGenerator* artifactGenerator=nullptr, + const xmltooling::Credential* credential=nullptr, + const XMLCh* signatureAlg=nullptr, + const XMLCh* digestAlg=nullptr ) const=0; protected: - MessageEncoder() {} + MessageEncoder(); }; /**