#include <shibsp/handler/AbstractHandler.h>
Inheritance diagram for shibsp::AbstractHandler:
Protected Member Functions | |
AbstractHandler (const xercesc::DOMElement *e, xmltooling::logging::Category &log, xercesc::DOMNodeFilter *filter=NULL, const std::map< std::string, std::string > *remapper=NULL) | |
Constructor. | |
virtual void | checkError (const xmltooling::XMLObject *response, const opensaml::saml2md::RoleDescriptor *role=NULL) const |
Examines a protocol response message for errors and raises an annotated exception if an error is found. | |
void | fillStatus (opensaml::saml2p::StatusResponseType &response, const XMLCh *code, const XMLCh *subcode=NULL, const char *msg=NULL) const |
Prepares Status information in a SAML 2.0 response. | |
long | sendMessage (const opensaml::MessageEncoder &encoder, xmltooling::XMLObject *msg, const char *relayState, const char *destination, const opensaml::saml2md::RoleDescriptor *role, const Application &application, xmltooling::HTTPResponse &httpResponse, bool signIfPossible=false) const |
Encodes and sends SAML 2.0 message, optionally signing it in the process. | |
virtual void | preserveRelayState (const Application &application, xmltooling::HTTPResponse &response, std::string &relayState) const |
Implements various mechanisms to preserve RelayState, such as cookies or StorageService-backed keys. | |
virtual void | recoverRelayState (const Application &application, const xmltooling::HTTPRequest &request, xmltooling::HTTPResponse &response, std::string &relayState, bool clear=true) const |
Implements various mechanisms to recover RelayState, such as cookies or StorageService-backed keys. | |
virtual void | preservePostData (const Application &application, const xmltooling::HTTPRequest &request, xmltooling::HTTPResponse &response, const char *relayState) const |
Implements a mechanism to preserve form post data. | |
virtual DDF | recoverPostData (const Application &application, const xmltooling::HTTPRequest &request, xmltooling::HTTPResponse &response, const char *relayState) const |
Implements storage service and cookie mechanism to recover PostData. | |
virtual long | sendPostResponse (const Application &application, xmltooling::HTTPResponse &httpResponse, const char *url, DDF &postData) const |
Post a redirect response with post data. | |
Protected Attributes | |
xmltooling::logging::Category & | m_log |
Logging object. | |
xmltooling::auto_ptr_char | m_configNS |
Configuration namespace for custom properties. |
|
Constructor.
|
|
Examines a protocol response message for errors and raises an annotated exception if an error is found. The base class version understands SAML 1.x and SAML 2.0 responses.
|
|
Prepares Status information in a SAML 2.0 response.
|
|
Implements a mechanism to preserve form post data.
|
|
Implements various mechanisms to preserve RelayState, such as cookies or StorageService-backed keys. If a supported mechanism can be identified, the input parameter will be replaced with a suitable state key.
|
|
Implements storage service and cookie mechanism to recover PostData. If a supported mechanism can be identified, the return value will be the recovered state information.
|
|
Implements various mechanisms to recover RelayState, such as cookies or StorageService-backed keys. If a supported mechanism can be identified, the input parameter will be replaced with the recovered state information.
|
|
Encodes and sends SAML 2.0 message, optionally signing it in the process. If the method returns, the message MUST NOT be freed by the caller.
|
|
Post a redirect response with post data.
|