PHP 클래스 OneLogin_Saml2_Settings

파일 보기 프로젝트 열기: onelogin/php-saml 1 사용 예제들

공개 메소드들

메소드 설명
__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.

비공개 메소드들

메소드 설명
_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

메소드 상세

__construct() 공개 메소드

Initializes the settings: - Sets the paths of the different folders - Loads settings info from settings file or array/object provided
public __construct ( array | object | null $settings = null, $spValidationOnly = false )
$settings array | object | null SAML Toolkit Settings

checkCompressionSettings() 공개 메소드

Checks the compression settings info.
public checkCompressionSettings ( array $settings ) : array
$settings array Array with settings data
리턴 array $errors Errors found on the settings data

checkIdPSettings() 공개 메소드

Checks the IdP settings info.
public checkIdPSettings ( array $settings ) : array
$settings array Array with settings data
리턴 array $errors Errors found on the IdP settings data

checkSPCerts() 공개 메소드

Checks if the x509 certs of the SP exists and are valid.
public checkSPCerts ( ) : boolean
리턴 boolean

checkSPSettings() 공개 메소드

Checks the SP settings info.
public checkSPSettings ( array $settings ) : array
$settings array Array with settings data
리턴 array $errors Errors found on the SP settings data

checkSettings() 공개 메소드

Checks the settings info.
public checkSettings ( array $settings ) : array
$settings array Array with settings data
리턴 array $errors Errors found on the settings data

formatIdPCert() 공개 메소드

Formats the IdP cert.
public formatIdPCert ( )

formatSPCert() 공개 메소드

Formats the SP cert.
public formatSPCert ( )

formatSPKey() 공개 메소드

Formats the SP private key.
public formatSPKey ( )

getBasePath() 공개 메소드

Returns base path.
public getBasePath ( ) : string
리턴 string The base toolkit folder path

getBaseURL() 공개 메소드

Returns the baseurl set on the settings if any.
public getBaseURL ( ) : null | string
리턴 null | string The baseurl

getCertPath() 공개 메소드

Returns cert path.
public getCertPath ( ) : string
리턴 string The cert folder path

getConfigPath() 공개 메소드

Returns config path.
public getConfigPath ( ) : string
리턴 string The config folder path

getContacts() 공개 메소드

Gets contact data.
public getContacts ( ) : array
리턴 array SP info

getErrors() 공개 메소드

Returns an array with the errors, the array is empty when the settings is ok.
public getErrors ( ) : array
리턴 array Errors

getExtLibPath() 공개 메소드

Returns external lib path.
public getExtLibPath ( ) : string
리턴 string The external library folder path

getIdPData() 공개 메소드

Gets the IdP data.
public getIdPData ( ) : array
리턴 array IdP info

getLibPath() 공개 메소드

Returns lib path.
public getLibPath ( ) : string
리턴 string The library folder path

getOrganization() 공개 메소드

Gets organization data.
public getOrganization ( ) : array
리턴 array SP info

getSPData() 공개 메소드

Gets the SP data.
public getSPData ( ) : array
리턴 array SP info

getSPMetadata() 공개 메소드

Gets the SP metadata. The XML representation.
public getSPMetadata ( ) : string
리턴 string SP metadata (xml)

getSPcert() 공개 메소드

Returns the x509 public cert of the SP.
public getSPcert ( ) : string
리턴 string SP public cert

getSPkey() 공개 메소드

Returns the x509 private key of the SP.
public getSPkey ( ) : string
리턴 string SP private key

getSchemasPath() 공개 메소드

Returns schema path.
public getSchemasPath ( ) : string
리턴 string The external library folder path

getSecurityData() 공개 메소드

Gets security data.
public getSecurityData ( ) : array
리턴 array SP info

isDebugActive() 공개 메소드

Returns if the debug is active.
public isDebugActive ( ) : boolean
리턴 boolean Debug parameter

isStrict() 공개 메소드

Returns if the 'strict' mode is active.
public isStrict ( ) : boolean
리턴 boolean Strict parameter

setBaseURL() 공개 메소드

Set a baseurl value.
public setBaseURL ( $baseurl )

setIdPCert() 공개 메소드

Sets the IdP certificate.
public setIdPCert ( $cert )

setStrict() 공개 메소드

Activates or deactivates the strict mode.
public setStrict ( boolean $value )
$value boolean Strict parameter

shouldCompressRequests() 공개 메소드

Should SAML requests be compressed?
public shouldCompressRequests ( ) : boolean
리턴 boolean Yes/No as True/False

shouldCompressResponses() 공개 메소드

Should SAML responses be compressed?
public shouldCompressResponses ( ) : boolean
리턴 boolean Yes/No as True/False

validateMetadata() 공개 메소드

Validates an XML SP Metadata.
public validateMetadata ( string $xml ) : Array
$xml string Metadata's XML that will be validate
리턴 Array The list of found errors