你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventHubSharedKeyCredential 类

用于身份验证的共享访问密钥凭据。

继承
builtins.object
EventHubSharedKeyCredential

构造函数

EventHubSharedKeyCredential(policy: str, key: str)

参数

名称 说明
policy
必需
str

共享访问策略的名称。

key
必需
str

共享访问密钥。

方法

get_token

get_token

get_token(*scopes: str, **kwargs: Any) -> AccessToken