Sdílet prostřednictvím


AuthenticationProvider interface

Rozhraní, které musí být implementováno objekty, které slouží k poskytnutí přihlašovacích údajů k přenosu používanému klientem zařízení k ověření v instanci služby Azure IoT Hub.

Vlastnosti

type

Metody

getDeviceCredentials()
getDeviceCredentials(Callback<TransportConfig>)
setTokenRenewalValues(number, number)

Podrobnosti vlastnosti

type

type: AuthenticationType

Hodnota vlastnosti

Podrobnosti metody

getDeviceCredentials()

function getDeviceCredentials(): Promise<TransportConfig>

Návraty

Promise<TransportConfig>

getDeviceCredentials(Callback<TransportConfig>)

function getDeviceCredentials(callback: Callback<TransportConfig>)

Parametry

setTokenRenewalValues(number, number)

function setTokenRenewalValues(tokenValidTimeInSeconds: number, tokenRenewalMarginInSeconds: number)

Parametry

tokenValidTimeInSeconds

number

tokenRenewalMarginInSeconds

number