Method | Description | |
---|---|---|
__construct ( array | object | null $settings = null, $spValidationOnly = false ) | Initializes the settings: - Sets the paths of the different folders - Loads settings info from settings file or array/object provided | |
checkCompressionSettings ( array $settings ) : array | Checks the compression settings info. | |
checkIdPSettings ( array $settings ) : array | Checks the IdP settings info. | |
checkSPCerts ( ) : boolean | Checks if the x509 certs of the SP exists and are valid. | |
checkSPSettings ( array $settings ) : array | Checks the SP settings info. | |
checkSettings ( array $settings ) : array | Checks the settings info. | |
formatIdPCert ( ) | Formats the IdP cert. | |
formatSPCert ( ) | Formats the SP cert. | |
formatSPKey ( ) | Formats the SP private key. | |
getBasePath ( ) : string | Returns base path. | |
getBaseURL ( ) : null | string | Returns the baseurl set on the settings if any. | |
getCertPath ( ) : string | Returns cert path. | |
getConfigPath ( ) : string | Returns config path. | |
getContacts ( ) : array | Gets contact data. | |
getErrors ( ) : array | Returns an array with the errors, the array is empty when the settings is ok. | |
getExtLibPath ( ) : string | Returns external lib path. | |
getIdPData ( ) : array | Gets the IdP data. | |
getLibPath ( ) : string | Returns lib path. | |
getOrganization ( ) : array | Gets organization data. | |
getSPData ( ) : array | Gets the SP data. | |
getSPMetadata ( ) : string | Gets the SP metadata. The XML representation. | |
getSPcert ( ) : string | Returns the x509 public cert of the SP. | |
getSPkey ( ) : string | Returns the x509 private key of the SP. | |
getSchemasPath ( ) : string | Returns schema path. | |
getSecurityData ( ) : array | Gets security data. | |
isDebugActive ( ) : boolean | Returns if the debug is active. | |
isStrict ( ) : boolean | Returns if the 'strict' mode is active. | |
setBaseURL ( $baseurl ) | Set a baseurl value. | |
setIdPCert ( $cert ) | Sets the IdP certificate. | |
setStrict ( boolean $value ) | Activates or deactivates the strict mode. | |
shouldCompressRequests ( ) : boolean | Should SAML requests be compressed? | |
shouldCompressResponses ( ) : boolean | Should SAML responses be compressed? | |
validateMetadata ( string $xml ) : Array | Validates an XML SP Metadata. |
Method | Description | |
---|---|---|
_addDefaultValues ( ) | Add default values if the settings info is not complete | |
_loadPaths ( ) | Sets the paths of the different folders | |
_loadSettingsFromArray ( array $settings ) : boolean | Loads settings info from a settings Array | |
_loadSettingsFromFile ( ) : boolean | Loads settings info from the settings file |
public checkCompressionSettings ( array $settings ) : array | ||
$settings | array | Array with settings data |
return | array | $errors Errors found on the settings data |
public checkIdPSettings ( array $settings ) : array | ||
$settings | array | Array with settings data |
return | array | $errors Errors found on the IdP settings data |
public checkSPCerts ( ) : boolean | ||
return | boolean |
public checkSPSettings ( array $settings ) : array | ||
$settings | array | Array with settings data |
return | array | $errors Errors found on the SP settings data |
public checkSettings ( array $settings ) : array | ||
$settings | array | Array with settings data |
return | array | $errors Errors found on the settings data |
public getBasePath ( ) : string | ||
return | string | The base toolkit folder path |
public getBaseURL ( ) : null | string | ||
return | null | string | The baseurl |
public getCertPath ( ) : string | ||
return | string | The cert folder path |
public getConfigPath ( ) : string | ||
return | string | The config folder path |
public getExtLibPath ( ) : string | ||
return | string | The external library folder path |
public getLibPath ( ) : string | ||
return | string | The library folder path |
public getOrganization ( ) : array | ||
return | array | SP info |
public getSPMetadata ( ) : string | ||
return | string | SP metadata (xml) |
public getSchemasPath ( ) : string | ||
return | string | The external library folder path |
public getSecurityData ( ) : array | ||
return | array | SP info |
public isDebugActive ( ) : boolean | ||
return | boolean | Debug parameter |
public shouldCompressRequests ( ) : boolean | ||
return | boolean | Yes/No as True/False |
public shouldCompressResponses ( ) : boolean | ||
return | boolean | Yes/No as True/False |
public validateMetadata ( string $xml ) : Array | ||
$xml | string | Metadata's XML that will be validate |
return | Array | The list of found errors |