Share via


AttestationToken Constructors

Definition

Overloads

AttestationToken()

Creates a new attestation token, used for mocking.

AttestationToken(AttestationTokenSigningKey)

Creates a new unsecured attestation token with an empty body. Used for the ResetPolicy(AttestationType, AttestationTokenSigningKey, CancellationToken) API.

AttestationToken(BinaryData)

Initializes a new instance of the AttestationToken class as an unsecured JSON Web Token, with body as the body of the token.

AttestationToken(BinaryData, AttestationTokenSigningKey)

Creates a new attestation token based on the supplied body signed with the specified signing key.

AttestationToken()

Source:
AttestationToken.cs

Creates a new attestation token, used for mocking.

protected AttestationToken ();
Protected Sub New ()

Applies to

AttestationToken(AttestationTokenSigningKey)

Source:
AttestationToken.cs

Creates a new unsecured attestation token with an empty body. Used for the ResetPolicy(AttestationType, AttestationTokenSigningKey, CancellationToken) API.

public AttestationToken (Azure.Security.Attestation.AttestationTokenSigningKey signingKey);
new Azure.Security.Attestation.AttestationToken : Azure.Security.Attestation.AttestationTokenSigningKey -> Azure.Security.Attestation.AttestationToken
Public Sub New (signingKey As AttestationTokenSigningKey)

Parameters

signingKey
AttestationTokenSigningKey

AttestationTokenSigningKey which will be used to sign the generated token.

Applies to

AttestationToken(BinaryData)

Source:
AttestationToken.cs

Initializes a new instance of the AttestationToken class as an unsecured JSON Web Token, with body as the body of the token.

public AttestationToken (BinaryData body);
new Azure.Security.Attestation.AttestationToken : BinaryData -> Azure.Security.Attestation.AttestationToken
Public Sub New (body As BinaryData)

Parameters

body
BinaryData

Body of the token to be generated, serialized as a byte array.

Applies to

AttestationToken(BinaryData, AttestationTokenSigningKey)

Source:
AttestationToken.cs

Creates a new attestation token based on the supplied body signed with the specified signing key.

public AttestationToken (BinaryData body, Azure.Security.Attestation.AttestationTokenSigningKey signingKey);
new Azure.Security.Attestation.AttestationToken : BinaryData * Azure.Security.Attestation.AttestationTokenSigningKey -> Azure.Security.Attestation.AttestationToken
Public Sub New (body As BinaryData, signingKey As AttestationTokenSigningKey)

Parameters

body
BinaryData

The body of the generated token, serialized as a byte array.

signingKey
AttestationTokenSigningKey

AttestationTokenSigningKey which will be used to sign the generated token.

Applies to