Package version:
Returns the algorithm from the header of the JSON Web Signature.
See RFC 7515 Section 4.1.1) for details.
If the value of algorithm is "none" it indicates that the token is unsecured.
OptionalcertificateJson Web Token Header "x509 certificate chain".
OptionalcertificateJson Web Token Header "x509 SHA256 thumprint".
OptionalcertificateJson Web Token Header "x509 thumprint". See RFC 7515 Section 4.1.7)
OptionalcontentJson Web Token Header "content type". See RFC 7515 Section 4.1.10)
OptionalcriticalJson Web Signature Header "crit".
See RFC 7515 Section 4.1.11) for details.
OptionalexpiresExpiration time for the token, from JWT body.
See RFC 7519 Section 4.1.4) for details.
OptionalissuedIssuance time for the token, from JWT body.
See RFC 7519 Section 4.1.6) for details.
OptionalissuerIssuer of the attestation token. See RFC 7519 Section 4.1.6) for details.
OptionalkeyJson Web Signature Header "kid". See RFC 7515 Section 4.1.4) for details.
OptionalkeyJson Web Token Header "key URL".
OptionalnotNot Before time for the token, from JWT body.
See RFC 7519 Section 4.1.5) for details.
OptionaltypeJson Web Token Header "Typ".
Optionalx509Json Web Token Header "X509 Url".
Returns the deserialized body of the AttestationToken object.
The body of the attestation token as an object.
Validates the attestation token to verify that it is semantically correct.
OptionalpossibleSigners: AttestationSigner[]
the set of possible signers for this attestation token.
Optionaloptions: AttestationTokenValidationOptions
validation options
Unlike the clients' validation of tokens returned by the service, which accepts an unsigned
token only in response to a draft policy request, this method accepts any unsigned token,
and it can verify the signature with the certificate embedded in the token itself, so an
empty result does not show that the attestation service issued the token. A token returned
by a client operation with validateToken: false was not validated by the client.
An AttestationToken represents an RFC 7515 JSON Web Signature object.
It can represent either the token returned by the attestation service, or it can be used to create a token locally which can be used to verify attestation policy changes.