AttestationToken Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an Attestation Token object.
public class AttestationToken
type AttestationToken = class
Public Class AttestationToken
- Inheritance
-
AttestationToken
Attestation |
Creates a new attestation token, used for mocking. |
Attestation |
Creates a new unsecured attestation token with an empty body. Used for the ResetPolicy(AttestationType, AttestationTokenSigningKey, CancellationToken) API. |
Attestation |
Creates a new attestation token based on the supplied body signed with the specified signing key. |
Attestation |
Initializes a new instance of the AttestationToken class as an unsecured JSON Web Token, with |
Algorithm |
Json Web Token Header "algorithm". See https://www.rfc-editor.org/rfc/rfc7515.html#section-4.1.1 for details. If the value of Algorithm is "none" it indicates that the token is unsecured. |
Certificate |
Returns the thumbprint of the X.509 certificate which was used to verify the attestation token. Null until the ValidateToken(AttestationTokenValidationOptions, IReadOnlyList<AttestationSigner>, CancellationToken) method has been called. |
Content |
Json Web Token Header "content type". See https://www.rfc-editor.org/rfc/rfc7515.html#section-4.1.10 for details. |
Critical |
JSON Web Token Header "Critical". RFC 7515 section 4.1.11 for details. |
Expiration |
Expiration time for the token. |
Issued |
Time at which this token was issued. |
Issuer |
Json Web Token Body Issuer. See https://www.rfc-editor.org/rfc/rfc7519.html#section-4.1.1 for details. |
Key |
Json Web Token Header "Key ID". See https://www.rfc-editor.org/rfc/rfc7515.html#section-4.1.4 for details. |
Key |
Json Web Token Header "Key URL". See https://www.rfc-editor.org/rfc/rfc7515.html#section-4.1.2 for details. |
Not |
Time before which this token is not valid. |
Signing |
Returns the X.509 certificate which was used to verify the attestation token. Null until the ValidateToken(AttestationTokenValidationOptions, IReadOnlyList<AttestationSigner>, CancellationToken) method has been called. |
Token |
Decoded body for the attestation token. See https://tools.ietf.org/html/rfc7515 for more details. |
Token |
Decoded header for the attestation token. See https://tools.ietf.org/html/rfc7515 for more details. |
Token |
Decoded signature for the attestation token. See https://tools.ietf.org/html/rfc7515 for more details. |
Type |
Json Web Token Header "type". See https://www.rfc-editor.org/rfc/rfc7515.html#section-4.1.9 for details. If present, the value for this field is normally "JWT". |
X509Certificate |
An array of X509Certificate which represent a certificate chain used to sign the token. RFC 7515 section 4.1.6 for details. |
X509Certificate |
The "thumbprint" of the certificate used to sign the request generated using the SHA256 algorithm. RFC 7515 section 4.1.8 for details. |
X509Certificate |
The "thumbprint" of the certificate used to sign the request. RFC 7515 section 4.1.7 for details. |
X509Url |
Json Web Token Header "X509 URL". See https://www.rfc-editor.org/rfc/rfc7515.html#section-4.1.5 for details. |
Deserialize(String) |
Creates a new instance of the AttestationToken class based on a specified JSON Web Token. |
Get |
Retrieves the body of the AttestationToken as the specified type. |
Serialize() |
Serializes the attestation token to a JSON Web Token |
Validate |
Validate a JSON Web Token returned by the MAA. If the caller provides a set of signers, than that set of signers will be used as the complete set of candidates for signing. If the caller does not provide a set of signers, then the ValidateToken(AttestationTokenValidationOptions, IReadOnlyList<AttestationSigner>, CancellationToken) API will a set of callers derived from the contents of the attestation token. |
Validate |
Validate a JSON Web Token returned by the MAA. If the caller provides a set of signers, than that set of signers will be used as the complete set of candidates for signing. If the caller does not provide a set of signers, then the ValidateTokenAsync(AttestationTokenValidationOptions, IReadOnlyList<AttestationSigner>, CancellationToken) API will a set of callers derived from the contents of the attestation token. |
Product | Versions |
---|---|
Azure SDK for .NET | Latest |
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: