Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
super(QueueService, self).__init__(service_params)
if self.account_key:
self.authentication = _StorageSharedKeyAuthentication(
self.account_name,
self.account_key,
self.is_emulated
)
elif self.sas_token:
self.authentication = _StorageSASAuthentication(self.sas_token)
elif self.token_credential:
self.authentication = self.token_credential
else:
raise ValueError(_ERROR_STORAGE_MISSING_INFO)
self.encode_function = QueueMessageFormat.text_xmlencode
self.decode_function = QueueMessageFormat.text_xmldecode
self.key_encryption_key = None
self.key_resolver_function = None
self.require_encryption = False
self._X_MS_VERSION = X_MS_VERSION
self._update_user_agent_string(package_version)
if self.account_key:
self.authentication = _StorageSharedKeyAuthentication(
self.account_name,
self.account_key,
self.is_emulated
)
elif self.sas_token:
self.authentication = _StorageSASAuthentication(self.sas_token)
elif self.token_credential:
self.authentication = self.token_credential
else:
raise ValueError(_ERROR_STORAGE_MISSING_INFO)
self.encode_function = QueueMessageFormat.text_xmlencode
self.decode_function = QueueMessageFormat.text_xmldecode
self.key_encryption_key = None
self.key_resolver_function = None
self.require_encryption = False
self._X_MS_VERSION = X_MS_VERSION
self._update_user_agent_string(package_version)