diff --git a/modules/adfs/lib/SAML2/XML/fed/Const.php b/modules/adfs/lib/SAML2/XML/fed/Constants.php similarity index 78% rename from modules/adfs/lib/SAML2/XML/fed/Const.php rename to modules/adfs/lib/SAML2/XML/fed/Constants.php index 1fd7fb15e9f40dba500737b62683bfbbefdb5121..db326b3488466fb903b6b3db672df1344574e1cb 100644 --- a/modules/adfs/lib/SAML2/XML/fed/Const.php +++ b/modules/adfs/lib/SAML2/XML/fed/Constants.php @@ -3,12 +3,12 @@ namespace SimpleSAML\Module\adfs\SAML2\XML\fed; /** - * Class representing fed Constants. + * Class holding constants relevant for ADFS. * * @package SimpleSAMLphp */ -class FedConst +class Constants { /** * The namespace for WS-FED protocol. diff --git a/modules/adfs/lib/SAML2/XML/fed/SecurityTokenServiceType.php b/modules/adfs/lib/SAML2/XML/fed/SecurityTokenServiceType.php index 55a802d507f38bb9137129f8bd64ee9b5fa7b351..10aa5e41eafa67d0eb164651ca14ce132c08e411 100644 --- a/modules/adfs/lib/SAML2/XML/fed/SecurityTokenServiceType.php +++ b/modules/adfs/lib/SAML2/XML/fed/SecurityTokenServiceType.php @@ -15,7 +15,7 @@ class SecurityTokenServiceType extends \SAML2\XML\md\RoleDescriptor * * @var array */ - public $protocolSupportEnumeration = [FedConst::NS_FED]; + public $protocolSupportEnumeration = [Constants::NS_FED]; /** * The Location of Services. @@ -48,7 +48,7 @@ class SecurityTokenServiceType extends \SAML2\XML\md\RoleDescriptor assert(is_string($this->Location)); $e = parent::toXML($parent); - $e->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:fed', FedConst::NS_FED); + $e->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:fed', Constants::NS_FED); $e->setAttributeNS(\SAML2\Constants::NS_XSI, 'xsi:type', 'fed:SecurityTokenServiceType'); TokenTypesOffered::appendXML($e); Endpoint::appendXML($e, 'SecurityTokenServiceEndpoint', $this->Location);