PHP Class OneLogin_Saml_XmlSec

Show file Open project: onelogin/php-saml Class Usage Examples

Protected Properties

Property Type Description
$_document DomDocument The document to be tested.
$_settings OneLogin_Saml_Settings A SamlResponse class provided to the constructor.

Public Methods

Method Description
__construct ( OneLogin_Saml_Settings $settings, OneLogin_Saml_Response $response ) Construct the SamlXmlSec object.
isValid ( ) : boolean
validateNumAssertions ( ) : boolean Verify that the document only contains a single Assertion
validateTimestamps ( ) : boolean Verify that the document is still valid according

Method Details

__construct() public method

Construct the SamlXmlSec object.
public __construct ( OneLogin_Saml_Settings $settings, OneLogin_Saml_Response $response )
$settings OneLogin_Saml_Settings A SamlResponse settings object containing the necessary x509 certicate to test the document.
$response OneLogin_Saml_Response The document to test.

isValid() public method

public isValid ( ) : boolean
return boolean

validateNumAssertions() public method

Verify that the document only contains a single Assertion
public validateNumAssertions ( ) : boolean
return boolean TRUE if the document passes.

validateTimestamps() public method

Verify that the document is still valid according
public validateTimestamps ( ) : boolean
return boolean

Property Details

$_document protected property

The document to be tested.
protected DomDocument $_document
return DomDocument

$_settings protected property

A SamlResponse class provided to the constructor.
protected OneLogin_Saml_Settings $_settings
return OneLogin_Saml_Settings