shibboleth-3.4.1
|
Public Member Functions | |
XMLConfig (const xercesc::DOMElement *e, bool deprecationSupport=true) | |
void | init () |
Loads a configuration and prepares the instance for use. More... | |
const XMLCh * | getConfigurationNamespace () const |
Get the "active" XML namespace of the underlying configuration. More... | |
xmltooling::Lockable * | lock () |
void | unlock () |
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... | |
const PropertySet * | getPropertySet (const char *name, const char *ns=shibspconstants::ASCII_SHIBSPCONFIG_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 | receive (DDF &in, std::ostream &out) |
Remoted classes implement this method to process incoming messages. More... | |
TransactionLog * | getTransactionLog () const |
Returns a TransactionLog instance. More... | |
xmltooling::StorageService * | getStorageService (const char *id) const |
Returns a StorageService instance based on an ID. More... | |
ListenerService * | getListenerService (bool required=true) const |
Returns a ListenerService instance. More... | |
SessionCache * | getSessionCache (bool required=true) const |
Returns a SessionCache instance. More... | |
RequestMapper * | getRequestMapper (bool required=true) const |
Returns a RequestMapper instance. More... | |
const Application * | getApplication (const char *applicationId) const |
Returns an Application instance matching the specified ID. More... | |
SecurityPolicyProvider * | getSecurityPolicyProvider (bool required=true) const |
Returns a SecurityPolicyProvider instance. More... | |
bool | setTransportOptions (xmltooling::SOAPTransport &transport) const |
Sets implementation-specific transport options. More... | |
void | regListener (const char *address, Remoted *svc) |
Register for a message. More... | |
bool | unregListener (const char *address, Remoted *current) |
Unregisters service from an address, possibly restoring an original. More... | |
Remoted * | lookupListener (const char *address) const |
Returns current service registered at an address, if any. More... | |
![]() | |
virtual std::pair< bool, long > | doAuthentication (SPRequest &request, bool handler=false) const |
Enforces requirements for an authenticated session. More... | |
virtual std::pair< bool, long > | doAuthorization (SPRequest &request) const |
Enforces authorization requirements based on the authenticated session. More... | |
virtual std::pair< bool, long > | doExport (SPRequest &request, bool requireSession=true) const |
Publishes session contents to the request in the form of headers or environment variables. More... | |
virtual std::pair< bool, long > | doHandler (SPRequest &request) const |
Services requests for registered Handler locations. More... | |
Protected Member Functions | |
std::pair< bool, xercesc::DOMElement * > | background_load () |
Friends | |
class | XMLConfigImpl |
Additional Inherited Members | |
![]() | |
std::set< std::string > | m_authTypes |
The AuthTypes to "recognize" (defaults to "shibboleth"). More... | |
|
virtual |
Returns an Application instance matching the specified ID.
applicationId | the ID of the application, or nullptr for the default |
Implements shibsp::ServiceProvider.
|
inlinevirtual |
Returns a boolean-valued property.
name | property name |
ns | property namespace, or nullptr |
Implements shibsp::PropertySet.
|
inlinevirtual |
Get the "active" XML namespace of the underlying configuration.
This accomodates multiple supported configuration schemas at runtime by allowing components to tailor their behavior to the specific format in use.
Implements shibsp::ServiceProvider.
|
inlinevirtual |
Returns a DOM element representing the property container, if any.
Implements shibsp::PropertySet.
|
inlinevirtual |
Returns an integer-valued property.
name | property name |
ns | property namespace, or nullptr |
Implements shibsp::PropertySet.
|
inlinevirtual |
Returns a ListenerService instance.
required | true iff an exception should be thrown if no ListenerService is available |
Implements shibsp::ServiceProvider.
|
inlinevirtual |
Returns parent of this PropertySet, if any.
Implements shibsp::PropertySet.
|
inlinevirtual |
Returns a nested property set.
name | nested property set name |
ns | nested property set namespace, or nullptr |
Implements shibsp::PropertySet.
|
inlinevirtual |
Returns a RequestMapper instance.
required | true iff an exception should be thrown if no RequestMapper is available |
Implements shibsp::ServiceProvider.
|
inlinevirtual |
Returns a SecurityPolicyProvider instance.
required | true iff an exception should be thrown if no SecurityPolicyProvider is available |
Implements shibsp::ServiceProvider.
|
inlinevirtual |
Returns a SessionCache instance.
required | true iff an exception should be thrown if no SessionCache is available |
Implements shibsp::ServiceProvider.
|
virtual |
Returns a StorageService instance based on an ID.
id | a nullptr-terminated key identifying the StorageService to the configuration |
Implements shibsp::ServiceProvider.
|
inlinevirtual |
Returns a string-valued property.
name | property name |
ns | property namespace, or nullptr |
Implements shibsp::PropertySet.
|
inlinevirtual |
Returns a TransactionLog instance.
Implements shibsp::ServiceProvider.
|
inlinevirtual |
Returns an unsigned integer-valued property.
name | property name |
ns | property namespace, or nullptr |
Implements shibsp::PropertySet.
|
inlinevirtual |
Returns a Unicode string-valued property.
name | property name |
ns | property namespace, or nullptr |
Implements shibsp::PropertySet.
|
inlinevirtual |
Loads a configuration and prepares the instance for use.
Implemented as a separate method so that services can rely on other services while they initialize by accessing the ServiceProvider from the SPConfig singleton.
Implements shibsp::ServiceProvider.
|
virtual |
Returns current service registered at an address, if any.
address | message address to access |
Implements shibsp::ServiceProvider.
|
virtual |
Remoted classes implement this method to process incoming messages.
Implements shibsp::Remoted.
|
virtual |
Register for a message.
address | message address to register |
svc | pointer to remote service |
Implements shibsp::ServiceProvider.
|
inlinevirtual |
Establishes a "parent" PropertySet to supply inherited settings.
parent | the parent PropertySet to use |
Implements shibsp::PropertySet.
|
virtual |
Sets implementation-specific transport options.
transport | a SOAPTransport object |
Implements shibsp::ServiceProvider.
|
virtual |
Unregisters service from an address, possibly restoring an original.
address | message address to modify |
current | pointer to unregistering service |
Implements shibsp::ServiceProvider.