|
| AbstractHandler (const xercesc::DOMElement *e, xmltooling::logging::Category &log, xercesc::DOMNodeFilter *filter=nullptr, const std::map< std::string, std::string > *remapper=nullptr) |
| Constructor. More...
|
|
void | log (SPRequest::SPLogLevel level, const std::string &msg) const |
| Log using handler's specific logging object. More...
|
|
virtual void | checkError (const xmltooling::XMLObject *response, const opensaml::saml2md::RoleDescriptor *role=nullptr) const |
| Examines a protocol response message for errors and raises an annotated exception if an error is found. More...
|
|
void | fillStatus (opensaml::saml2p::StatusResponseType &response, const XMLCh *code, const XMLCh *subcode=nullptr, const char *msg=nullptr) const |
| Prepares Status information in a SAML 2.0 response. More...
|
|
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, const char *defaultSigningProperty) const |
| Encodes and sends SAML 2.0 message, optionally signing it in the process. More...
|
|
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 |
|
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. More...
|
|
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. More...
|
|
virtual long | sendPostResponse (const Application &application, xmltooling::HTTPResponse &response, const char *url, DDF &postData) const |
| Post a redirect response with post data. More...
|
|
std::pair< bool, bool > | getBool (const char *name, const xmltooling::HTTPRequest &request, unsigned int type=HANDLER_PROPERTY_ALL) const |
| Returns a boolean-valued property. More...
|
|
std::pair< bool, const char * > | getString (const char *name, const xmltooling::HTTPRequest &request, unsigned int type=HANDLER_PROPERTY_ALL) const |
| Returns a string-valued property. More...
|
|
std::pair< bool, unsigned int > | getUnsignedInt (const char *name, const xmltooling::HTTPRequest &request, unsigned int type=HANDLER_PROPERTY_ALL) const |
| Returns an unsigned integer-valued property. More...
|
|
std::pair< bool, int > | getInt (const char *name, const xmltooling::HTTPRequest &request, unsigned int type=HANDLER_PROPERTY_ALL) const |
| Returns an integer-valued property. More...
|
|
std::pair< bool, bool > | getBool (const char *name, const char *ns=nullptr) const |
|
std::pair< bool, const char *> | getString (const char *name, const char *ns=nullptr) const |
|
std::pair< bool, unsigned int > | getUnsignedInt (const char *name, const char *ns=nullptr) const |
|
std::pair< bool, int > | getInt (const char *name, const char *ns=nullptr) const |
|
virtual void | cleanRelayState (const Application &application, const xmltooling::HTTPRequest &request, xmltooling::HTTPResponse &response) const |
| Prevents unused relay state from building up by cleaning old state from the client. More...
|
|
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. More...
|
|
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. More...
|
|
bool | setProperty (const char *name, const char *val, const char *ns=nullptr) |
| Post-load injection of a property, for use by subclasses. More...
|
|
|
virtual const XMLCh * | getProtocolFamily () const |
| Returns an identifier for the protocol family associated with the handler, if any. More...
|
|
virtual std::pair< bool, long > | run (SPRequest &request, bool isHandler=true) const =0 |
| Executes handler functionality as an incoming request. More...
|
|
virtual void | generateMetadata (opensaml::saml2md::SPSSODescriptor &role, const char *handlerURL) const |
| Generates and/or modifies metadata reflecting the Handler. More...
|
|
virtual const char * | getType () const |
| Returns the "type" of the Handler plugin. More...
|
|
virtual const char * | getEventType () const |
| Get the type of event, as input to error handling in response to errors raised by this handler. More...
|
|
const PropertySet * | getParent () const |
| Returns parent of this PropertySet, if any. More...
|
|
void | setParent (const PropertySet *parent) |
| Establishes a "parent" PropertySet to supply inherited settings. More...
|
|
std::pair< bool, bool > | getBool (const char *name, const char *ns=nullptr) const |
| Returns a boolean-valued property. More...
|
|
std::pair< bool, const char * > | getString (const char *name, const char *ns=nullptr) const |
| Returns a string-valued property. More...
|
|
std::pair< bool, const XMLCh * > | getXMLString (const char *name, const char *ns=nullptr) const |
| Returns a Unicode string-valued property. More...
|
|
std::pair< bool, unsigned int > | getUnsignedInt (const char *name, const char *ns=nullptr) const |
| Returns an unsigned integer-valued property. More...
|
|
std::pair< bool, int > | getInt (const char *name, const char *ns=nullptr) const |
| Returns an integer-valued property. More...
|
|
void | getAll (std::map< std::string, const char *> &properties) const |
| Returns a map of all known properties in string form. More...
|
|
const PropertySet * | getPropertySet (const char *name, const char *ns=shibspconstants::ASCII_SHIB2SPCONFIG_NS) const |
| Returns a nested property set. More...
|
|
const xercesc::DOMElement * | getElement () const |
| Returns a DOM element representing the property container, if any. More...
|
|
void | load (const xercesc::DOMElement *e, xmltooling::logging::Category *log=nullptr, xercesc::DOMNodeFilter *filter=nullptr, const std::map< std::string, std::string > *remapper=nullptr) |
| Loads the property set from a DOM element. More...
|
|
Base class for handlers based on a DOMPropertySet.