class MetadataReader in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8
Hierarchy
- class \Drupal\miniorange_saml\MetadataReader
Expanded class hierarchy of MetadataReader
1 file declares its use of MetadataReader
File
- src/
MetadataReader.php, line 3
Namespace
Drupal\miniorange_samlView source
class MetadataReader {
private $identityProviders;
private $serviceProviders;
public function __construct(\DOMNode $xml = NULL) {
$this->identityProviders = array();
$this->serviceProviders = array();
$entityDescriptors = Utilities::xpQuery($xml, './saml_metadata:EntityDescriptor');
foreach ($entityDescriptors as $entityDescriptor) {
$idpSSODescriptor = Utilities::xpQuery($entityDescriptor, './saml_metadata:IDPSSODescriptor');
if (isset($idpSSODescriptor) && !empty($idpSSODescriptor)) {
array_push($this->identityProviders, new IdentityProviders($entityDescriptor));
}
//TODO: add sp descriptor
}
}
public function getIdentityProviders() {
return $this->identityProviders;
}
public function getServiceProviders() {
return $this->serviceProviders;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MetadataReader:: |
private | property | ||
MetadataReader:: |
private | property | ||
MetadataReader:: |
public | function | ||
MetadataReader:: |
public | function | ||
MetadataReader:: |
public | function |