SimpleSAML_Metadata_SAMLParser::processAttributeAuthorityDescriptor PHP Method

processAttributeAuthorityDescriptor() private method

This function extracts metadata from a AttributeAuthorityDescriptor element.
private processAttributeAuthorityDescriptor ( SAML2\XML\md\AttributeAuthorityDescriptor $element, integer | null $expireTime )
$element SAML2\XML\md\AttributeAuthorityDescriptor The element which should be parsed.
$expireTime integer | null The unix timestamp for when this element should expire, or NULL if unknown.
    private function processAttributeAuthorityDescriptor(\SAML2\XML\md\AttributeAuthorityDescriptor $element, $expireTime)
    {
        assert('is_null($expireTime) || is_int($expireTime)');
        $aad = self::parseRoleDescriptorType($element, $expireTime);
        $aad['entityid'] = $this->entityId;
        $aad['metadata-set'] = 'attributeauthority-remote';
        $aad['AttributeService'] = self::extractEndpoints($element->AttributeService);
        $aad['AssertionIDRequestService'] = self::extractEndpoints($element->AssertionIDRequestService);
        $aad['NameIDFormat'] = $element->NameIDFormat;
        $this->attributeAuthorityDescriptors[] = $aad;
    }