public function getMetadata1xIdP()
{
$ret = $this->getMetadataCommon();
$ret['metadata-set'] = 'shib13-idp-remote';
// find IdP information which supports the SAML 1.x protocol
$idp = $this->getIdPDescriptors(self::$SAML1xProtocols);
if (count($idp) === 0) {
return null;
}
// we currently only look at the first IDP descriptor which supports SAML 1.x
$idp = $idp[0];
// fdd expire time to metadata
if (array_key_exists('expire', $idp)) {
$ret['expire'] = $idp['expire'];
}
// find the SSO service endpoints
$ret['SingleSignOnService'] = $idp['SingleSignOnService'];
// find the ArtifactResolutionService endpoint
$ret['ArtifactResolutionService'] = $idp['ArtifactResolutionService'];
// add public keys
if (!empty($idp['keys'])) {
$ret['keys'] = $idp['keys'];
}
// add extensions
$this->addExtensions($ret, $idp);
// prioritize mdui:DisplayName as the name if available
if (!empty($ret['UIInfo']['DisplayName'])) {
$ret['name'] = $ret['UIInfo']['DisplayName'];
}
return $ret;
}