/** * Initializes static members of the class. * * @return none */ protected static function init() { self::$_endpointUriSetting = self::settingWithFunc(Resources::MEDIA_SERVICES_ENDPOINT_URI_NAME, Validate::getIsValidUri()); self::$_oauthEndpointUriSetting = self::settingWithFunc(Resources::MEDIA_SERVICES_OAUTH_ENDPOINT_URI_NAME, Validate::getIsValidUri()); self::$_accountNameSetting = self::setting(Resources::MEDIA_SERVICES_ACCOUNT_NAME); self::$_accessKeySetting = self::setting(Resources::MEDIA_SERVICES_ACCESS_KEY); self::$validSettingKeys[] = Resources::MEDIA_SERVICES_ENDPOINT_URI_NAME; self::$validSettingKeys[] = Resources::MEDIA_SERVICES_OAUTH_ENDPOINT_URI_NAME; self::$validSettingKeys[] = Resources::MEDIA_SERVICES_ACCOUNT_NAME; self::$validSettingKeys[] = Resources::MEDIA_SERVICES_ACCESS_KEY; }
/** * Initializes static members of the class. * * @return none */ protected static function init() { self::$_endpointSetting = self::settingWithFunc(Resources::SERVICE_MANAGEMENT_ENDPOINT_NAME, Validate::getIsValidUri()); self::$_certificatePathSetting = self::setting(Resources::CERTIFICATE_PATH_NAME); self::$_subscriptionIdSetting = self::setting(Resources::SUBSCRIPTION_ID_NAME); self::$validSettingKeys[] = Resources::SUBSCRIPTION_ID_NAME; self::$validSettingKeys[] = Resources::CERTIFICATE_PATH_NAME; self::$validSettingKeys[] = Resources::SERVICE_MANAGEMENT_ENDPOINT_NAME; }
/** * Initializes static members of the class. * * @return none */ protected static function init() { self::$_useDevelopmentStorageSetting = self::setting(Resources::USE_DEVELOPMENT_STORAGE_NAME, 'true'); self::$_developmentStorageProxyUriSetting = self::settingWithFunc(Resources::DEVELOPMENT_STORAGE_PROXY_URI_NAME, Validate::getIsValidUri()); self::$_defaultEndpointsProtocolSetting = self::setting(Resources::DEFAULT_ENDPOINTS_PROTOCOL_NAME, 'http', 'https'); self::$_accountNameSetting = self::setting(Resources::ACCOUNT_NAME_NAME); self::$_accountKeySetting = self::settingWithFunc(Resources::ACCOUNT_KEY_NAME, function ($key) { $isValidBase64String = base64_decode($key, true); if ($isValidBase64String) { return true; } else { throw new \RuntimeException(sprintf(Resources::INVALID_ACCOUNT_KEY_FORMAT, $key)); } }); self::$_blobEndpointSetting = self::settingWithFunc(Resources::BLOB_ENDPOINT_NAME, Validate::getIsValidUri()); self::$_queueEndpointSetting = self::settingWithFunc(Resources::QUEUE_ENDPOINT_NAME, Validate::getIsValidUri()); self::$_tableEndpointSetting = self::settingWithFunc(Resources::TABLE_ENDPOINT_NAME, Validate::getIsValidUri()); self::$validSettingKeys[] = Resources::USE_DEVELOPMENT_STORAGE_NAME; self::$validSettingKeys[] = Resources::DEVELOPMENT_STORAGE_PROXY_URI_NAME; self::$validSettingKeys[] = Resources::DEFAULT_ENDPOINTS_PROTOCOL_NAME; self::$validSettingKeys[] = Resources::ACCOUNT_NAME_NAME; self::$validSettingKeys[] = Resources::ACCOUNT_KEY_NAME; self::$validSettingKeys[] = Resources::BLOB_ENDPOINT_NAME; self::$validSettingKeys[] = Resources::QUEUE_ENDPOINT_NAME; self::$validSettingKeys[] = Resources::TABLE_ENDPOINT_NAME; }
/** * Initializes static members of the class. * * @return none */ protected static function init() { self::$_serviceBusEndpointSetting = self::settingWithFunc(Resources::SERVICE_BUS_ENDPOINT_NAME, Validate::getIsValidUri()); self::$_wrapNameSetting = self::setting(Resources::SHARED_SECRET_ISSUER_NAME); self::$_wrapPasswordSetting = self::setting(Resources::SHARED_SECRET_VALUE_NAME); self::$_wrapEndpointUriSetting = self::settingWithFunc(Resources::STS_ENDPOINT_NAME, Validate::getIsValidUri()); self::$validSettingKeys[] = Resources::SERVICE_BUS_ENDPOINT_NAME; self::$validSettingKeys[] = Resources::SHARED_SECRET_ISSUER_NAME; self::$validSettingKeys[] = Resources::SHARED_SECRET_VALUE_NAME; self::$validSettingKeys[] = Resources::STS_ENDPOINT_NAME; }
/** * @covers WindowsAzure\Common\Internal\Validate::isDouble */ public function testGetValidateUri() { // Test $function = Validate::getIsValidUri(); // Assert $this->assertInternalType('object', $function); }