C# Class Microsoft.Devices.Tpm.TpmDevice

Mostra file Open project: ms-iot/security Class Usage Examples

Public Methods

Method Description
Destroy ( ) : void
GetConnectionString ( uint validity = 3600 ) : string
GetDeviceId ( ) : string
GetHardwareDeviceId ( ) : string
GetHostName ( ) : string
GetSASToken ( uint validity = 3600 ) : string
Provision ( string encodedHmacKey, string hostName, string deviceId = "" ) : void
SignHmac ( Byte dataToSign ) : Byte[]
TpmDevice ( UInt32 logicalDeviceId ) : System
TpmDevice ( string DeviceIdName ) : System

Private Methods

Method Description
AzureUrlEncode ( string stringIn ) : string
GetHeldData ( ) : string

Method Details

Destroy() public method

public Destroy ( ) : void
return void

GetConnectionString() public method

public GetConnectionString ( uint validity = 3600 ) : string
validity uint
return string

GetDeviceId() public method

public GetDeviceId ( ) : string
return string

GetHardwareDeviceId() public method

public GetHardwareDeviceId ( ) : string
return string

GetHostName() public method

public GetHostName ( ) : string
return string

GetSASToken() public method

public GetSASToken ( uint validity = 3600 ) : string
validity uint
return string

Provision() public method

public Provision ( string encodedHmacKey, string hostName, string deviceId = "" ) : void
encodedHmacKey string
hostName string
deviceId string
return void

SignHmac() public method

public SignHmac ( Byte dataToSign ) : Byte[]
dataToSign Byte
return Byte[]

TpmDevice() public method

public TpmDevice ( UInt32 logicalDeviceId ) : System
logicalDeviceId System.UInt32
return System

TpmDevice() public method

public TpmDevice ( string DeviceIdName ) : System
DeviceIdName string
return System