$_paths
$_paths : array
List of paths.
Configuration of the PHP Toolkit
__construct(array|object|null $settings = null, boolean $spValidationOnly = false)
Initializes the settings: - Sets the paths of the different folders - Loads settings info from settings file or array/object provided
array|object|null | $settings | SAML Toolkit Settings |
boolean | $spValidationOnly |
If any settings parameter is invalid
If OneLogin_Saml2_Settings is incorrectly supplied
getSPMetadata(boolean $alwaysPublishEncryptionCert = false, \DateTime|null $validUntil = null, integer|null $cacheDuration = null) : string
Gets the SP metadata. The XML representation.
boolean | $alwaysPublishEncryptionCert | When 'true', the returned metadata will always include an 'encryption' KeyDescriptor. Otherwise, the 'encryption' KeyDescriptor will only be included if $advancedSettings['security']['wantNameIdEncrypted'] or $advancedSettings['security']['wantAssertionsEncrypted'] are enabled. |
\DateTime|null | $validUntil | Metadata's valid time |
integer|null | $cacheDuration | Duration of the cache in seconds |
SP metadata (xml)